[gnome-builder/gnome-builder-3-18] vim: make n/shift-n follow current search direction



commit daca1281e7e346787c4b9f269ce142f3d02480d1
Author: Ray Strode <rstrode redhat com>
Date:   Sun Oct 11 14:49:33 2015 -0400

    vim: make n/shift-n follow current search direction
    
    n and shift-n are supposed to follow the current search
    direction, make sure that they do.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756405

 data/keybindings/vim.css |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/data/keybindings/vim.css b/data/keybindings/vim.css
index e40d126..9eaa435 100644
--- a/data/keybindings/vim.css
+++ b/data/keybindings/vim.css
@@ -269,8 +269,8 @@
                     "movement" (previous-match-modifier, 0, 0, 1)
                     "clear-modifier" () };
 
-  bind "n" { "move-search" (down, 0, 0, 1, 1, 0) };
-  bind "<shift>n" { "move-search" (up, 0, 0, 0, 1, 0) };
+  bind "n" { "move-search" (tab-forward, 0, 0, 1, 1, 0) };
+  bind "<shift>n" { "move-search" (tab-backward, 0, 0, 0, 1, 0) };
 
   bind "numbersign" { "movement" (previous-word-end, 0, 1, 1)
                       "movement" (next-word-start, 0, 1, 0)
@@ -1147,8 +1147,8 @@
   bind "b" { "movement" (previous-word-start, 1, 1, 1) };
   bind "<shift>b" { "movement" (previous-full-word-start, 1, 1, 1) };
 
-  bind "n" { "move-search" (down, 1, 0, 1, 1, 0) };
-  bind "<shift>n" { "move-search" (up, 1, 0, 0, 1, 0) };
+  bind "n" { "move-search" (tab-forward, 1, 0, 1, 1, 0) };
+  bind "<shift>n" { "move-search" (tab-backward, 1, 0, 0, 1, 0) };
 
   bind "numbersign" { "save-insert-mark" ()
                       "movement" (previous-word-end, 0, 1, 1)


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