aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-03-31 12:20:17 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-03-31 12:31:23 +0200
commit6f44057d09b865e9c7e443cd7d7adb8e541121db (patch)
tree85306ea233bcf9acb62fbe95f7f050ab59344880 /vis.h
parent9c48a188a51a971d65a6ce764733745fd163f017 (diff)
downloadvis-6f44057d09b865e9c7e443cd7d7adb8e541121db.tar.gz
vis-6f44057d09b865e9c7e443cd7d7adb8e541121db.tar.xz
vis: add non-default actions for vi compatible n/N motions
The following key mappings should result in the vi behavior: :map! normal n <vis-motion-search-repeat> :map! normal N <vis-motion-search-repeat-reverse> The default remains unchanged, that is `n` (`N`) always searches towards the end (start) of the file. Fix #470
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vis.h b/vis.h
index d7cb0c0..8f74a36 100644
--- a/vis.h
+++ b/vis.h
@@ -322,6 +322,8 @@ enum VisMotion {
VIS_MOVE_TOTILL_REVERSE,
VIS_MOVE_SEARCH_FORWARD,
VIS_MOVE_SEARCH_BACKWARD,
+ VIS_MOVE_SEARCH_REPEAT,
+ VIS_MOVE_SEARCH_REPEAT_REVERSE,
VIS_MOVE_LAST, /* denotes the end of all motions */
};