[gnome-builder] libide: fix dd in vim mode



commit 9ab2f389f3e4f41de4fd5690bd22874165d181ca
Author: Christian Hergert <christian hergert me>
Date:   Fri Mar 6 16:14:27 2015 -0800

    libide: fix dd in vim mode

 data/keybindings/vim.css |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 07ba63b..d6f4e8c 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -234,7 +234,9 @@
                     "clear-count" () };
 
   /* move to nth line, defaults to last */
-  bind "<shift>g" { "movement" (nth-line, 0, 0, 1) };
+  bind "<shift>g" { "movement" (nth-line, 0, 1, 1)
+                    "movement" (first-nonspace-char, 0, 1, 0)
+                    "clear-count" () };
 
   /* undo - todo: how do we land cursor on right spot? */
   bind "u" { "undo" ()
@@ -398,10 +400,13 @@
   bind "i" { "set-mode" ("vim-normal-d-i", transient) };
   bind "g" { "set-mode" ("vim-normal-d-g", transient) };
 
-  bind "d" { "movement" (first-char, 0, 0, 0)
-             "movement" (next-line, 1, 1, 1)
+  bind "d" { "save-insert-mark" ()
+             "movement" (first-char, 0, 1, 0)
+             "movement" (next-line, 1, 0, 1)
              "copy-clipboard" ()
-             "delete-selection" () };
+             "delete-selection" ()
+             "restore-insert-mark" () };
+
   bind "e" { "movement" (next-word-end, 1, 0, 1)
              "copy-clipboard" ()
              "delete-selection" () };


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