enable top/bottom in cmap mappings

This commit is contained in:
Gokcehan committed 2021-01-19 01:45:42 +03:00
1 parent a13c14fb07
commit 7481040c2d
4 files changed
+19 -13

No files matched your search

+4 -4
View File
@@ -1075,12 +1075,12 @@ Globbing supports '*' to match any sequence, '?' to match any character, and '[.
You can enable 'incsearch' option to jump to the current match at each keystroke while typing.
In this mode, you can either use 'cmd-enter' to accept the search or use 'cmd-escape' to cancel the search.
Alternatively, you can also map some other commands with 'cmap' to accept the search and execute the command immediately afterwards.
Possible candidates are 'up', 'down' and their variants, 'updir', and 'open' commands.
Possible candidates are 'up', 'down' and their variants, 'top', 'bottom', 'updir', and 'open' commands.
For example, you can use arrow keys to finish the search with the following mappings:
cmap <up> up
cmap <down> down
cmap <left> updir
cmap <up> up
cmap <down> down
cmap <left> updir
cmap <right> open
Finding mechanism is implemented with commands 'find' (default 'f'), 'find-back' (default 'F'), 'find-next' (default ';'), 'find-prev' (default ',').