[gnome-builder] libide: allow z[ztb] in vim visual and visual-line modes



commit 8478fc8a2a80699c4c48343df8b459b87e83ff96
Author: Christian Hergert <christian hergert me>
Date:   Thu Mar 5 13:11:52 2015 -0800

    libide: allow z[ztb] in vim visual and visual-line modes

 data/keybindings/vim.css |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index b5cefbb..37eb3ef 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -195,6 +195,26 @@
   bind "b" { "movement" (scroll-screen-bottom, 0) };
 }
 
+ binding-set builder-vim-source-view-visual-z
+{
+  bind "z" { "movement" (scroll-screen-center, 1)
+             "set-mode" ("vim-visual", permanent) };
+  bind "t" { "movement" (scroll-screen-top, 1)
+             "set-mode" ("vim-visual", permanent) };
+  bind "b" { "movement" (scroll-screen-bottom, 1)
+             "set-mode" ("vim-visual", permanent) };
+}
+
+ binding-set builder-vim-source-view-visual-line-z
+{
+  bind "z" { "movement" (scroll-screen-center, 1)
+             "set-mode" ("vim-visual-line", permanent) };
+  bind "t" { "movement" (scroll-screen-top, 1)
+             "set-mode" ("vim-visual-line", permanent) };
+  bind "b" { "movement" (scroll-screen-bottom, 1)
+             "set-mode" ("vim-visual-line", permanent) };
+}
+
 @binding-set builder-vim-source-view-normal-y
 {
   bind "y" { "save-insert-mark" ()
@@ -420,6 +440,11 @@ IdeSourceViewMode.vim-visual-g {
                     builder-vim-source-view-visual-g;
 }
 
+IdeSourceViewMode.vim-visual-z {
+  gtk-key-bindings: builder-vim-source-view,
+                    builder-vim-source-view-visual-z;
+}
+
 IdeSourceViewMode.vim-visual-line {
   gtk-key-bindings: builder-vim-source-view,
                     builder-vim-source-view-visual-line;
@@ -430,6 +455,11 @@ IdeSourceViewMode.vim-visual-line-g {
                     builder-vim-source-view-visual-line-g;
 }
 
+IdeSourceViewMode.vim-visual-line-z {
+  gtk-key-bindings: builder-vim-source-view,
+                    builder-vim-source-view-visual-line-z;
+}
+
 IdeSourceViewMode.vim-visual-block {
   gtk-key-bindings: builder-vim-source-view, builder-vim-source-view-visual-block;
 }


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