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.
0 votes
in vifm by

When in compare view, i can use ]c and [c to jump to next/previous change.
It seems that only files that differ considered changes.
If a file is missed on one side but present on the other, the missing side just has ...... (dots).
In some sense I'd consider that a change too, like vimdiff does.
Anyhow, I would like to have a shortcut to jump to dot-line w/o scrolling/looking for it.
Is there anything you can suggest for that?

1 Answer

+1 vote
selected by
Best answer

The documentation says mismatched entry, not change (as c might suggest, which is weird).

I don't think it's possible to implement it by some kind of a mapping except in current view, where you can search for an empty file name (^$) to find "........." entries.


Finding an empty line the way you suggested is quite useful in fact.

Moreover I managed the following mapping

noremap ]e  
 \ :  
 \ | execute 'normal /^$'
 \ | execute 'normal n'<cr>

nnoremap [e  
 \ :  
 \ | execute 'normal ?^$'
 \ | execute 'normal n'<cr>

so now ]e and [e can be used to find empty lines forwards and backward

Thanks for your support!

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.