[gnome-builder/wip/libide] libide: be friendly when in line selection mode with h/l



commit e19e4e574149eaddb31496f39b81c762d3aa595d
Author: Christian Hergert <christian hergert me>
Date:   Fri Mar 6 20:08:07 2015 -0800

    libide: be friendly when in line selection mode with h/l

 data/keybindings/vim.css |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index b5dbfe7..7081bfd 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -666,6 +666,12 @@
   bind "k" { "movement" (previous-line, 1, 0, 1) };
   bind "j" { "movement" (next-line, 1, 0, 1) };
 
+  /* just to be nice */
+  bind "h" { "clear-selection" ()
+             "set-mode" ("vim-normal", permanent) };
+  bind "l" { "clear-selection" ()
+             "set-mode" ("vim-normal", permanent) };
+
   bind "Up" { "movement" (previous-line, 1, 0, 1) };
   bind "Down" { "movement" (next-line, 1, 0, 1) };
 


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