Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.

Remapping modified arrow keys

0 votes
asked Jul 14 in vifm by anonymous

Is there a way to remap arrow keys with pressed Ctrl or Alt to something else? Ideally it would be <nop> becouse right now after pressing Ctrl + <right> Vifm copies current file 5 times.

showkey -a tells that Ctrl + <right> produces ^[[1;5C which explains Vifm's behavior.

1 Answer

0 votes
answered Jul 14 by xaizek
selected Jul 14 by xaizek
 
Best answer

You can map such sequences by using <esc> instead of ^[:

:noremap <esc>[1;5C <nop>
commented Jul 14 by anonymous

Perfect. Thank you.

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.
...