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.

Don't save last directory by default, but save it when closing with Q

+1 vote
asked Jan 12, 2016 in vifm by anonymous

I'd like vifm to remember the last directory I was in when I quit with Q, but not with q.

1 Answer

+1 vote
answered Jan 12, 2016 by xaizek

The following snippet added to vifmrc should produce desired behaviour:

set vifminfo-=savedirs
nnoremap Q :set vifminfo+=savedirs | quit<cr>

We literally disable saving last directory by default, but enable it on pressing Q right before quitting.

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.