[gnome-builder/wip/libide] libide: add :count prefixes to movements in vim-visual mode



commit 8ef4752e1e9d0ab24b5daa7882e0dd5044a3e8f7
Author: Christian Hergert <christian hergert me>
Date:   Tue Mar 10 21:28:36 2015 -0700

    libide: add :count prefixes to movements in vim-visual mode

 data/keybindings/vim.css |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 6535b41..186fa37 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -729,10 +729,37 @@
   bind "<ctrl>y" { "movement" (screen-down, 0, 0, 1) };
 }
 
+ binding-set builder-vim-source-view-visual-with-count
+{
+  bind "0" { "append-to-count" (0)
+             "set-mode" ("vim-visual-with-count", transient) };
+  bind "percent" { "movement" (line-percentage, 1, 1, 1)
+                   "set-mode" ("vim-visual-with-count", transient) };
+}
+
 @binding-set builder-vim-source-view-visual
 {
   bind "percent" { "move-to-matching-bracket" (1) };
 
+  bind "1" { "append-to-count" (1)
+             "set-mode" ("vim-visual-with-count", transient) };
+  bind "2" { "append-to-count" (2)
+             "set-mode" ("vim-visual-with-count", transient) };
+  bind "3" { "append-to-count" (3)
+             "set-mode" ("vim-visual-with-count", transient) };
+  bind "4" { "append-to-count" (4)
+             "set-mode" ("vim-visual-with-count", transient) };
+  bind "5" { "append-to-count" (5)
+             "set-mode" ("vim-visual-with-count", transient) };
+  bind "6" { "append-to-count" (6)
+             "set-mode" ("vim-visual-with-count", transient) };
+  bind "7" { "append-to-count" (7)
+             "set-mode" ("vim-visual-with-count", transient) };
+  bind "8" { "append-to-count" (8)
+             "set-mode" ("vim-visual-with-count", transient) };
+  bind "9" { "append-to-count" (9)
+             "set-mode" ("vim-visual-with-count", transient) };
+
   bind "x" { "delete-selection" () };
   bind "<shift>x" { "delete-selection" () };
 


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