[gnome-builder/wip/libide] libide: add yj and yk support in vim normal mode



commit b158f0bdfb3ca969c3ff87106901bc6ef33934d2
Author: Christian Hergert <christian hergert me>
Date:   Thu Mar 5 22:31:34 2015 -0800

    libide: add yj and yk support in vim normal mode

 data/keybindings/vim.css |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 7fb3df0..4c3036a 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -346,6 +346,28 @@
              "selection-theatric" (expand)
              "clear-selection" ()
              "restore-insert-mark" () };
+
+  bind "j" { "save-insert-mark" ()
+             "movement" (first-char, 0)
+             "movement" (next-line, 1)
+             "movement" (last-char, 1)
+             "move-cursor" (visual-positions, 1, 1)
+             "copy-clipboard" ()
+             "selection-theatric" (expand)
+             "clear-selection" ()
+             "restore-insert-mark" () };
+
+  bind "k" { "save-insert-mark" ()
+             "movement" (last-char, 0)
+             "move-cursor" (visual-positions, 1, 1)
+             "swap-selection-bounds" ()
+             "movement" (previous-line, 1)
+             "movement" (previous-line, 1)
+             "movement" (first-char, 1)
+             "copy-clipboard" ()
+             "selection-theatric" (expand)
+             "clear-selection" ()
+             "restore-insert-mark" () };
 }
 
 @binding-set builder-vim-source-view-normal-g


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