[gnome-builder] libide: add x, X, y, and Y during visual line mode



commit b83d769dd1b820b9df6288a46c9489729a2bddcb
Author: Christian Hergert <christian hergert me>
Date:   Wed Mar 4 15:56:32 2015 -0800

    libide: add x, X, y, and Y during visual line mode

 data/keybindings/vim.css |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 5e5b06b..16aa76d 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -188,6 +188,22 @@
 {
   bind "j" { "movement" (next-line, 1) };
   bind "k" { "movement" (previous-line, 1) };
+
+  bind "x"        { "copy-clipboard" ()
+                    "delete-from-cursor" (chars, 1)
+                    "delete-from-cursor" (chars, 1)
+                    "set-mode" ("vim-normal", permanent) };
+  bind "<shift>x" { "copy-clipboard" ()
+                    "delete-from-cursor" (chars, 1)
+                    "delete-from-cursor" (chars, 1)
+                    "set-mode" ("vim-normal", permanent) };
+
+  bind "y"        { "copy-clipboard" ()
+                    "clear-selection" ()
+                    "set-mode" ("vim-normal", permanent) };
+  bind "<shift>y" { "copy-clipboard" ()
+                    "clear-selection" ()
+                    "set-mode" ("vim-normal", permanent) };
 }
 
 @binding-set builder-vim-source-view-visual-block


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