[gnome-builder] libide: improve enter/backspace semantics in normal mode



commit 5aa10bc36c745d369f010c5f833928902f692064
Author: Christian Hergert <christian hergert me>
Date:   Thu Mar 5 13:19:07 2015 -0800

    libide: improve enter/backspace semantics in normal mode

 data/keybindings/vim.css |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 7468c5c..a671ccf 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -139,7 +139,12 @@
   bind "asciitilde" { "change-case" (toggle)
                       "movement" (next-char, 0) };
 
-  bind "BackSpace" { "movement" (previous-char, 0) };
+  bind "BackSpace" { "move-cursor" (logical-positions, -1, 0) };
+
+  bind "KP_Enter" { "movement" (next-line, 0) };
+  bind "<shift>KP_Enter" { "movement" (next-line, 0) };
+  bind "Return" { "movement" (next-line, 0) };
+  bind "<shift>Return" { "movement" (next-line, 0) };
 
   /* copy */
   bind "y" { "set-mode" ("vim-normal-y", transient) };


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