[gnome-builder/wip/libide] libide: fix dj and dk in vim mode



commit 0bb968c6c48452ac226629133867f50ec0f24a84
Author: Christian Hergert <christian hergert me>
Date:   Fri Mar 6 12:54:09 2015 -0800

    libide: fix dj and dk in vim mode

 data/keybindings/vim.css |   35 +++++++++++++++++++++++++++--------
 1 files changed, 27 insertions(+), 8 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 996ddaa..b6370a4 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -281,22 +281,41 @@
 
 @binding-set builder-vim-source-view-normal-d
 {
+  bind "Left"  { "movement" (previous-char, 1, 1, 1)
+                 "copy-selection" ()
+                 "delete-selection" () };
   bind "h"     { "movement" (previous-char, 1, 1, 1)
+                 "copy-selection" ()
                  "delete-selection" () };
-  bind "l"     { "movement" (next-char, 1, 1, 1)
+
+  bind "Right" { "movement" (next-char, 1, 1, 1)
+                 "copy-selection" ()
                  "delete-selection" () };
-  bind "k"     { "movement" (previous-line, 1, 1, 1)
+  bind "l"     { "movement" (next-char, 1, 1, 1)
+                 "copy-selection" ()
                  "delete-selection" () };
-  bind "j"     { "movement" (next-line, 1, 1, 1)
+
+  bind "Up"    { "movement" (line-end, 0, 0, 0)
+                 "movement" (previous-line, 1, 1, 0)
+                 "movement" (previous-line, 1, 1, 1)
+                 "copy-selection" ()
                  "delete-selection" () };
-  bind "Left"  { "movement" (previous-char, 1, 1, 1)
+  bind "k"     { "movement" (line-end, 0, 0, 0)
+                 "movement" (previous-line, 1, 1, 0)
+                 "movement" (previous-line, 1, 1, 1)
+                 "copy-selection" ()
                  "delete-selection" () };
-  bind "Right" { "movement" (next-char, 1, 1, 1)
+
+  bind "Down"   { "movement" (first-char, 0, 1, 0)
+                 "movement" (next-line, 1, 0, 0)
+                 "movement" (next-line, 1, 0, 1)
+                 "copy-selection" ()
                  "delete-selection" () };
-  bind "Up"    { "movement" (previous-line, 1, 1, 1)
+  bind "j"     { "movement" (first-char, 0, 1, 0)
+                 "movement" (next-line, 1, 0, 0)
+                 "movement" (next-line, 1, 0, 1)
+                 "copy-selection" ()
                  "delete-selection" () };
-  bind "Down"  { "movement" (next-line, 1, 1, 1)
-                "delete-selection" () };
 
   bind "g" { "set-mode" ("vim-normal-d-g", transient) };
 


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