[gnome-builder/wip/libide] libide: fix space/backspace in normal/visual vim modes



commit 73432b8f491fcff1bdfb41653cfcc231b6cce308
Author: Christian Hergert <christian hergert me>
Date:   Wed Mar 11 15:24:39 2015 -0700

    libide: fix space/backspace in normal/visual vim modes

 data/keybindings/vim.css |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index eecc93b..014b271 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -331,9 +331,10 @@
                       "change-case" (toggle)
                       "clear-count" () };
 
-  /* todo: not quite right, should add movement that can span lines */
   bind "BackSpace" { "movement" (previous-offset, 0, 1, 1)
                      "clear-count" () };
+  bind "space" { "movement" (next-offset, 0, 1, 1)
+                 "clear-count" () };
 
   bind "KP_Enter" { "movement" (next-line, 0, 1, 1)
                     "clear-count" () };
@@ -783,6 +784,11 @@
   bind "Up" { "movement" (previous-line, 1, 1, 1) };
   bind "Down" { "movement" (next-line, 1, 1, 1) };
 
+  bind "BackSpace" { "movement" (previous-offset, 1, 1, 1)
+                     "clear-count" () };
+  bind "space" { "movement" (next-offset, 1, 1, 1)
+                 "clear-count" () };
+
   bind "y" { "copy-clipboard" ()
              "selection-theatric" (expand)
              "clear-selection" ()


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