[gnome-builder] libide: add note about <shift>j difference



commit 77631eb33ece73d8c1d519c80d38b22a0469158a
Author: Christian Hergert <christian hergert me>
Date:   Wed Mar 11 15:07:34 2015 -0700

    libide: add note about <shift>j difference
    
    both 1J and 2J are the same thing in Vim, which is rather difficult to
    emulate without adding another signal to subtract 1 from count.

 data/keybindings/vim.css |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 901e13f..eecc93b 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -312,10 +312,12 @@
   bind "less" { "set-mode" ("vim-normal-indent", transient) };
 
   /* join selected lines */
-  bind "<shift>j" { "movement" (first-char, 0, 1, 0)
-                    "movement" (next-line, 1, 1, 1)
+  /* todo: this actually grabs one more line than vim does when prefixed with
+   *       a count. 1J and 2J are both the same thing.
+   */
+  bind "<shift>j" { "movement" (first-char, 0, 0, 0)
+                    "movement" (next-line, 1, 0, 1)
                     "join-lines" ()
-                    "movement" (last-char, 0, 0, 0)
                     "clear-count" () };
 
   /* change number */


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