[gnome-builder] vim: Add BOL and EOL bindings in C mode



commit f842a676ab3231218cd81260fc5c7750d0e08afe
Author: Carl Simonson <simonsonc gmail com>
Date:   Tue Oct 13 08:18:10 2015 -0500

    vim: Add BOL and EOL bindings in C mode
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756500

 data/keybindings/vim.css |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index 66c3ce6..db18680 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -527,6 +527,26 @@
              "copy-clipboard" ()
              "delete-selection" () };
 
+  bind "0" { "begin-macro" ()
+             "set-mode" ("vim-insert", permanent)
+             "movement" (first-char, 1, 0, 0)
+             "copy-clipboard" ()
+             "delete-selection" ()
+             "end-macro" () };
+  bind "<shift>asciicircum" { "begin-macro" ()
+                              "set-mode" ("vim-insert", permanent)
+                              "movement" (first-nonspace-char, 1, 1, 1)
+                              "copy-clipboard" ()
+                              "delete-selection" ()
+                              "end-macro" () };
+  bind "dollar" { "begin-macro" ()
+                  "set-mode" ("vim-insert", permanent)
+                  "movement" (line-end, 1, 1, 0)
+                  "copy-clipboard" ()
+                  "delete-selection" ()
+                  "end-macro" () };
+
+
   bind "f" { "begin-macro" ()
              "capture-modifier" ()
              "set-mode" ("vim-insert", permanent)


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