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.

restart and vifmrc location

+1 vote
asked Nov 8, 2017 in vifm by traycerb

based on the wiki, on a Windows system, the parent directory of the exe is considered a valid location for configuration files. I have my vifmrc in that directory, but it isn't loaded on start. I have also tried putting it in the same directory as the exe (which is also described as a valid place), but this does not work either.

I can :source the config manually and the settings load up, but if I :restart then the default settings load back up.

The $MYVIFMRC is empty when I echo it, though the other environment variables seem to be working (e.g. $HOME $VIFM).

Is this the intended behavior and I've just misconfigured or misunderstood something, or is this not the correct behavior?

1 Answer

0 votes
answered Nov 8, 2017 by xaizek
selected Nov 9, 2017 by xaizek
Best answer

the parent directory of the exe
in the same directory as the exe

This is the same directory, directory containing exe is parent directory of that exe file (probably worth rephrasing if that's confusing).

Putting vifmrc next to exe should work and overwrite anything else on Windows. I just tested and it works here.

If you have vifm.exe and vifmrc in the same directory and start vifm, does output of these commands inside vifm point to this directory?

:echo $VIFM

Note that you need to complete restart vifm (not use :restart) for it to rediscover configuration.

commented Nov 9, 2017 by traycerb

Great, that works. I did have a misunderstanding about what constituted the "parent directory", and also thought that :restart would detect the moved vifmc. Moving vifmrc to the correct location and vifm exit and restart got everything working. Thank you.

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here won't be considered as spam, but this is not a perfect place for it.