[gnome-builder] vim: add c in visual modes



commit 372bb3deed1ec7b90cad5d343838f6f4d5f69403
Author: heroin <misko herko gmail com>
Date:   Tue Dec 15 21:21:20 2015 +0100

    vim: add c in visual modes
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760947

 data/keybindings/vim.css |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 2b941fe..92a290f 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -1836,6 +1836,11 @@
              "end-macro" ()
              "set-mode" ("vim-normal", permanent) };
 
+  bind "c" { "copy-clipboard" ()
+             "selection-theatric" (shrink)
+             "delete-selection" ()
+             "set-mode" ("vim-insert", permanent) };
+
   bind "d" { "copy-clipboard" ()
              "delete-selection" ()
              "end-macro" ()
@@ -2208,6 +2213,14 @@ bind "KP_Multiply" { "save-insert-mark" ()
                     "end-macro" ()
                     "set-mode" ("vim-normal", permanent) };
 
+  bind "c"        { "copy-clipboard" ()
+                    "selection-theatric" (shrink)
+                    "delete-selection" ()
+                    "set-mode" ("vim-insert", permanent)
+                    "insert-at-cursor" ("\n")
+                    "move-cursor" (display-lines, -1, 0)
+                    "reindent" () };
+
   bind "<shift>x" { "copy-clipboard" ()
                     "delete-selection" ()
                     "delete-from-cursor" (chars, 1)


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