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.
0 votes
in vifm by
edited by

I'm using vifm and I have already mapped those arrow keys to something else (which is resizing the split window in vim). So I would like to disable those arrow keys in vifm permanently (which means I don't fancy the way of always adding an option when launching vifm). Is there any way to do that (for instance add some line to the vifmrc).
Also, I've noticed that in the manual it claims that
--disable-extended-keys
may disable those keys including arrow keys. But when I tried to launch vifm with that option
vifm --disable-extended-keys
it just shows unrecognized option. So I'm wondering if that is the right way to use the disable option? Or if it's simply not an available option for vifm?
Here's the version information of my vifm.

Version: 0.10.1
Git info: built out of repository
Compiled at: Aug 1 2019 13:13:13
Support of extended keys is on
Parsing of .desktop files is enabled
Without GTK+ library
Without magic library
Without X11 library
Without dynamic loading of X11 library
With file program
With -n option for cp and mv
With remote command execution

Much appreciated.

1 Answer

0 votes
by

--disable-extended-keys is a configuration option for building vifm from source (where you can do ./configure --disable-extended-keys), not its command-line option.

Same as in Vim, you can map keys to do nothing:

noremap <down> <nop>
noremap <up> <nop>
noremap <right> <nop>
noremap <left> <nop>
cnoremap <down> <nop>
cnoremap <up> <nop>
cnoremap <right> <nop>
cnoremap <left> <nop>
dnoremap <down> <nop>
dnoremap <up> <nop>
dnoremap <right> <nop>
dnoremap <left> <nop>
mnoremap <down> <nop>
mnoremap <up> <nop>
mnoremap <right> <nop>
mnoremap <left> <nop>
qnoremap <down> <nop>
qnoremap <up> <nop>
qnoremap <right> <nop>
qnoremap <left> <nop>
...