[gnome-builder] vim: add = for reindent in selection modes



commit c4c3ffd6bcbb139bfc4d19ba1df8e4f10e109498
Author: Christian Hergert <chergert redhat com>
Date:   Thu May 5 19:03:43 2016 +0300

    vim: add = for reindent in selection modes
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746989

 data/keybindings/vim.css |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index afd98df..80f19fd 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -1879,6 +1879,9 @@
   bind "space" { "movement" (next-offset, 1, 1, 1)
                  "clear-count" () };
 
+  bind "equal" { "reindent" ()
+                 "set-mode" ("vim-normal", permanent) };
+
   /* TODO: we really want to rollback the macro here */
   bind "y" { "copy-clipboard" ()
              "selection-theatric" (expand)
@@ -2211,6 +2214,9 @@ bind "KP_Multiply" { "save-insert-mark" ()
   bind "Up" { "movement" (previous-line, 1, 0, 1) };
   bind "Down" { "movement" (next-line, 1, 0, 1) };
 
+  bind "equal" { "reindent" ()
+                 "set-mode" ("vim-normal", permanent) };
+
   bind "z" { "set-mode" ("vim-visual-line-z", transient) };
 
   bind "<shift>g" { "movement" (last-line, 1, 0, 0)


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