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.

Can vifm be made VCS (e.g. git or svn) aware?

+1 vote
asked Jul 10, 2019 in vifm by anonymous

I have recently switched from ranger to vifm and I really like vifm a lot!
However, I am missing a feature which I found quite useful. It is the vcs_aware option provided by ranger which is explained here.

Does vifm offer some comparable option? I could imagine something similar to a sign column within vim which could be used to display a symbol indicating the status of a file (uptodate, conflicted, untracked, deleted, changed or staged, or ignored).

1 Answer

0 votes
answered Jul 10, 2019 by xaizek
Best answer

No, there isn't really a comparable feature. Maybe one day there will be a way to add this as an extension like an extra column or a sign column.

The closest thing at the moment could be adding something like %{ system(expand("your-script %c")) } to 'statusline' and maybe using this to quickly view git status:

command! Gst git -c color.status=always status -s %q
commented Jul 11, 2019 by anonymous

Awesome, thanks a lot! I will give this a try then! :)

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.