From 6f44057d09b865e9c7e443cd7d7adb8e541121db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 31 Mar 2017 12:20:17 +0200 Subject: vis: add non-default actions for vi compatible n/N motions The following key mappings should result in the vi behavior: :map! normal n :map! normal N The default remains unchanged, that is `n` (`N`) always searches towards the end (start) of the file. Fix #470 --- vis.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vis.h') 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 */ }; -- cgit v1.2.3