[gnome-builder] libide: add ciw and ciW from vim mode



commit 5ad595057a72fbbd327dce9a09abc67013ea090a
Author: Christian Hergert <christian hergert me>
Date:   Sun Mar 8 01:36:24 2015 -0800

    libide: add ciw and ciW from vim mode

 data/keybindings/vim.css |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 1dda8c3..0bc9285 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -372,6 +372,26 @@
              "selection-theatric" (shrink)
              "delete-selection" ()
              "clear-count" () };
+
+  /* ciw */
+  bind "w" { "set-mode" ("vim-insert", permanent)
+             "movement" (previous-word-end, 0, 1, 1)
+             "movement" (next-word-start, 0, 1, 0)
+             "movement" (next-word-end, 1, 0, 1)
+             "copy-clipboard" ()
+             "selection-theatric" (shrink)
+             "delete-selection" ()
+             "clear-count" () };
+
+  /* ciW */
+  bind "<shift>w" { "set-mode" ("vim-insert", permanent)
+                    "movement" (previous-full-word-end, 0, 1, 1)
+                    "movement" (next-full-word-start, 0, 1, 0)
+                    "movement" (next-full-word-end, 1, 0, 1)
+                    "copy-clipboard" ()
+                    "selection-theatric" (shrink)
+                    "delete-selection" ()
+                    "clear-count" () };
 }
 
 @binding-set builder-vim-source-view-normal-d


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]