From Vifm Wiki
Revision as of 11:17, 2 November 2021 by Xaizek (talk | contribs) (→‎How to get total size of selected files?: Mention ga/gA keys)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


How to report bugs/feature requests?[edit]

There are several ways to do that, pick one that is the most convenient to you (e.g. you already have an account where it's required for posting):

Which code repository is the primary one?[edit]

master branch and tags of both




are updated at the same time for all repositories (although they might be out of sync for a short period of time occasionally), so one should get the same result no matter which code repository is used. Different repositories might have different feature/bug-fix branches, but they are temporary ones and exist just to communicate new code for testing.


NOTE: in vifm 0.8.1 and above there is no need for windo command in vifmrc, it's implicitly added to cover the cases below.

How to set sorting/columns in both panes from vifmrc?[edit]

Add windo prefix to command you want to be executed for both panes.

" separated
windo set sort=...
windo set viewcolumns=...

" or both at the same time
windo set sort=... viewcolumns=...

windo can be applied to any command-line command, not just set.

How to show hidden files by default on startup?[edit]

Since 0.9[edit]

Add this command to your ~/.vifm/vifmrc:

set dotfiles

Prior to 0.9[edit]

Add this command to your ~/.vifm/vifmrc:

windo normal! zo


  • windo applies command to both panes (as described in in another question);
  • normal! is Command-line mode command that executes its argument list as Normal mode commands (! ensures that none of user-defined mappings will affect execution of Normal mode commands);
  • zo is Normal mode command to show hidden files.

How to set view-local option for both views from vifmrc?[edit]

Use :windo prefix-command to do this. An example:

windo set viewcolumns=-{name}..,6{}.

:windo can be used with any command, it just executes the rest of command-line in both panes.


Is it possible to embed Vim or another terminal application into one of Vifm's panes?[edit]

No, unfortunately it's not possible. Allowing this would require embedding terminal multiplexer into Vifm, which is kinda silly because it is a file manager. The compromise is to run Vifm inside terminal multiplexer and provide some integration between them (there is already some builtin support for GNU Screen and tmux in Vifm, e.g. :screen, :ls).

How to exit vifm in the active directory?[edit]

See How to set shell working directory after leaving Vifm.

How to change current pane to the directory of inactive pane?[edit]

:cd %D command does this, here %D is a macro that expands to full path of the other pane. One probably would like to map this command to a shortcut, e.g.

:nnoremap <c-y> :cd %D<cr>

binds such directory synchronization to Ctrl+Y shortcut.

Add that :nnoremap command to your ~/.vifm/vifmrc to make the shortcut persistent.

How to get total size of selected files?[edit]

'statusline' option has %E flag (with optional width field). It allows one to see total size of selected items on the status line.

Add the flag somewhere in the value of the option, maybe use it instead of %s. Example:

set statusline='  %t%= %A %10u:%-7g %15E %20d  '

If you want size of directories to reflect sizes of files they contain, use ga/gA on them.