[gnome-builder/wip/libide] libide: make > and < in visual and visual-line act more like vim



commit 4f8f6b09ca39590a618c9b662e9516d65ad9541d
Author: Christian Hergert <christian hergert me>
Date:   Fri Mar 6 13:41:08 2015 -0800

    libide: make > and < in visual and visual-line act more like vim

 data/keybindings/vim.css |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 5966bcd..45be4c1 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -547,8 +547,12 @@
   bind "<ctrl>u" { "movement" (half-page-up, 1, 0, 1) };
   bind "<ctrl>d" { "movement" (half-page-down, 1, 0, 1) };
 
-  bind "greater" { "indent-selection" (1) };
-  bind "less" { "indent-selection" (-1) };
+  bind "greater" { "indent-selection" (1)
+                   "movement" (first-nonspace-char, 0, 1, 0)
+                   "set-mode" ("vim-normal", permanent) };
+  bind "less" { "indent-selection" (-1)
+                "movement" (first-nonspace-char, 0, 1, 0)
+                "set-mode" ("vim-normal", permanent) };
 
   bind "0" { "movement" (first-char, 1, 1, 0) };
   bind "<shift>asciicircum" { "movement" (first-nonspace-char, 1, 0, 0) };
@@ -640,10 +644,12 @@
 
   bind "greater" { "indent-selection" (1)
                    "clear-selection" ()
-                   "movement" (first-nonspace-char, 0, 1, 0) };
+                   "movement" (first-nonspace-char, 0, 1, 0)
+                   "set-mode" ("vim-normal", permanent) };
   bind "less" { "indent-selection" (-1)
                 "clear-selection" ()
-                   "movement" (first-nonspace-char, 0, 1, 0) };
+                "movement" (first-nonspace-char, 0, 1, 0)
+                "set-mode" ("vim-normal", permanent) };
 
   bind "<ctrl>e" { "movement" (screen-up, 1, 0, 1) };
   bind "<ctrl>y" { "movement" (screen-down, 1, 0, 1) };


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