Welcome to Vifm Q&A, where you can ask questions about using Vifm. Registration is optional, anonymous posts are moderated. E-mail and GitHub logins are enabled.
0 votes
in vifm by
edited by

I would like to change my current mapping

nnoremap t tj

to ctrl+up and ctrl+down to select the current element and move the pointer to the next or previous element, is this possible? I came up with

nnoremap [1;5A tk
nnoremap [1;5B tj

and while it select the current element and move the pointer correctly, it would not preserve the previous selection if I use the shortcut again, unlike the t tj mapping

edit: I solved by using av in visual mode instead

1 Answer

0 votes
by
nnoremap  <esc>[1;5A tk
nnoremap  <esc>[1;5B tj

would probably be the correct mappings. When I enter the dash shell and do a Ctrl-down what I get is

$ ^[[1;5B

and ^[ is an escape.

by

thank you for pointing that out!

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.
...