[gnome-builder/wip/libide] libide: transition back to normal mode after x or X in visual



commit b7f93847244565256a02b9078179367daa827b55
Author: Christian Hergert <christian hergert me>
Date:   Wed Mar 18 15:20:20 2015 -0700

    libide: transition back to normal mode after x or X in visual

 data/keybindings/vim.css |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index a4a1464..5cbaf93 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -936,10 +936,12 @@
 
   bind "x" { "copy-clipboard" ()
              "delete-selection" ()
-             "end-macro" () };
+             "end-macro" ()
+             "set-mode" ("vim-normal", permanent) };
   bind "<shift>x" { "copy-clipboard" ()
                     "delete-selection" ()
-                    "end-macro" () };
+                    "end-macro" ()
+                    "set-mode" ("vim-normal", permanent) };
 
   bind "h" { "movement" (previous-char, 1, 1, 1) };
   bind "l" { "movement" (next-char, 1, 1, 1) };


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