[gnome-builder/gnome-builder-3-20] vim: add = for reindent in selection modes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-20] vim: add = for reindent in selection modes
- Date: Thu, 5 May 2016 16:08:46 +0000 (UTC)
commit a05d881f1f75f621cf247bf00e38becf01b4dc77
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 f2ab080..c3414b0 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]