Configuration model
There are several commands that can be used to configure Vifm (e.g.
:set
, :colorscheme
), but, if you restart it, all
settings are reset to their previous values. To make changes permanent one
needs to put them into configuration file or ask Vifm to store them
automatically. Intent of this section is to describe things related to configuration.
Configuration files
Vifm follows the same configuration scheme as Vim and many other Unix applications use:
- main configuration file should be edited manually as it is only read by the application and is never modified by it;
- state of the application that is preserved across session is stored in separate file(s) and is not meant to be modified by a user.
For Vifm the first file is called vifmrc
(located at
~/.vifm/vifmrc
by default) and the second one is
vifminfo
(located at ~/.vifm/vifminfo
).
vifmrc
consists of regular commands that can be entered on the
command line.
vifminfo
is written automatically. Which options are written and
applied on startup depends on 'vifminfo'
option.
Omitting writing of vifminfo
TODO: describe :quit!
, ZQ
.
Moving configuration files
TODO: describe $VIFM
environment variable.
Skipping load of configuration files
TODO: describe --no-configs
command-line option.
Reloading configuration
TODO: describe :restart
command.