Making key bindings of midnight commander like Vim

user1839724 picture user1839724 · Feb 10, 2013 · Viewed 10.2k times · Source

I would like to have hjkl key to go through directories/files of my panel. This is a bit like elinks with hjkl, less with hjkl, or vifm.

Ctrl+ key left to do a sort of alt+i.

Do you know if those shortcuts are possible?

If yes, please would you mind providing some help or examples of a config file?

Answer

champost picture champost · Oct 3, 2013

Check this excellent answer:

The configuration is stored in

$HOME/.config/mc/

In your case edit the file $HOME/.config/mc/ini. You can check which files are actually read in by midnight-commander using strace:

strace -e trace=open -o mclog mc

I found my key bindings (on Ubuntu 12.04) at /etc/mc/mc.keymap