[gnome-builder/gnome-builder-3-20] vim: fix home/end/page-up/page-down in selection mode



commit 2645796f22b3bd700a506731099ba312a12c1991
Author: Christian Hergert <chergert redhat com>
Date:   Sat May 7 11:50:41 2016 +0300

    vim: fix home/end/page-up/page-down in selection mode
    
    Although, it seems that page up/down still isn't quite right in the same
    way ctrl+f/b isn't quite right in linewise mode.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766087

 data/keybindings/vim.css |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index f585f23..c2b40dc 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -1925,7 +1925,9 @@ bind "KP_Multiply" { "save-insert-mark" ()
                      "move-search" (down, 1, 0, 1, 1, 1) };
 
   bind "<ctrl>b" { "movement" (page-up, 1, 0, 1) };
+  bind "Page_Up" { "movement" (page-up, 1, 0, 1) };
   bind "<ctrl>f" { "movement" (page-down, 1, 0, 1) };
+  bind "Page_Down" { "movement" (page-down, 1, 0, 1) };
   bind "<ctrl>u" { "movement" (half-page-up, 1, 0, 1) };
   bind "<ctrl>d" { "movement" (half-page-down, 1, 0, 1) };
 
@@ -1940,8 +1942,10 @@ bind "KP_Multiply" { "save-insert-mark" ()
 
   bind "0" { "movement" (first-char, 1, 1, 0) };
   bind "KP_0" { "movement" (first-char, 1, 1, 0) };
+  bind "Home" { "movement" (first-char, 1, 1, 0) };
   bind "asciicircum" { "movement" (first-nonspace-char, 1, 0, 0) };
-  bind "dollar" { "movement" (last-char, 1, 1, 0) };
+  bind "dollar" { "movement" (last-char, 1, 0, 0) };
+  bind "End" { "movement" (last-char, 1, 0, 0) };
   bind "bar" { "movement" (nth-char, 1, 1, 1) };
 
   bind "<shift>h" { "movement" (screen-top, 1, 0, 0) };
@@ -2316,8 +2320,12 @@ bind "KP_Multiply" { "save-insert-mark" ()
   /* page movements */
   bind "<ctrl>b" { "movement" (page-up, 1, 0, 1)
                    "clear-count" () };
+  bind "Page_Up" { "movement" (page-up, 1, 0, 1)
+                   "clear-count" () };
   bind "<ctrl>f" { "movement" (page-down, 1, 0, 1)
                    "clear-count" () };
+  bind "Page_Down" { "movement" (page-down, 1, 0, 1)
+                     "clear-count" () };
   bind "<ctrl>u" { "movement" (half-page-up, 1, 0, 1)
                    "clear-count" () };
   bind "<ctrl>d" { "movement" (half-page-down, 1, 0, 1)


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