As of 0.6.2 you can customize key bindings in Vifm. These can be set from the command mode using the map command, like so:

As of 0.6.2 you can customize key bindings in Vifm. These can be set from the command mode using the map command, like so:

+

:map ] :s

−

:map ] :

+

However, these mappings will not be saved between sessions. To map a key permanently, place them in ~/vifm/vifmrc. More sample mappings can be seen at the end of that file.

−

−

However, these mappings will not be saved between sessions. To map a key permanently, copy the {{filename|startup}} file from the source directory to {{filename|~/.vifm/}} (or create one there), and enter your mappings for all modes (map) or normal (nmap) and visual (vmap) modes, eg.

−

−

nmap s :shell<cr>

−

nmap S :sort<cr>

===Opening filetypes in Vifm===

===Opening filetypes in Vifm===

You can assign applications to filetypes in vifmrc, eg.

You can assign applications to filetypes in vifmrc, eg.

−

FILETYPE=Images=jpg,jpeg,gif,tif,tiff,png,bmp=feh

+

filetype *.jpg,*.jpeg,*.png,*.gif feh %f 2>/dev/null &

−

FILETYPE=Movies=avi,flv,mpg,mpeg,mov,ogg,ogv=vlc

+

filetype *.md5 md5sum -c %f

+

Several defaults can be found in vifmrc. These can be edited or added to following the same format.

===User commands===

===User commands===

You can also create custom commands in vifmrc, eg.

You can also create custom commands in vifmrc, eg.

−

COMMAND=feh=feh -Fp. *.*

+

command df df -h %m 2> /dev/null

+

command diff vim -d %f %F

====Creating symbolic links====

====Creating symbolic links====

+

{{Note|This section needs to be updated to the new vifmrc format. The following will not work on newer versions of vifm.}}

COMMAND=ln=ln -s %d/%f %D

COMMAND=ln=ln -s %d/%f %D

When you call :ln, a link of the selected file is made in the other directory (if you are in split view). It even works with multiple files selected with visual (v) or tag (t).

When you call :ln, a link of the selected file is made in the other directory (if you are in split view). It even works with multiple files selected with visual (v) or tag (t).

===Torrent Creation===

===Torrent Creation===

+

{{Note|This section needs to be updated to the new vifmrc format. The following will not work on newer versions of vifm.}}

Revision as of 18:48, 3 January 2012

This article is a stub.

Notes:please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Vifm#)

Vifm is a ncurses based file manager with vi like keybindings. If you use vi, vifm gives you complete keyboard control over your files without having to learn a new set of commands. Source: Vifm on sourceforge.