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

Hello! Assuming I have vifm with two open panels like this:

And assume that I'm currently in the left panel. Is there a command which I can use to get to the same path like the right panel? For example :cdp which should stand for cd to other panel. So if I to :cdp my left panel would be in /tmp/vifm-question/test1/subdir1 and not in /tmp/vifm-question/test2.

1 Answer

0 votes
selected by
Best answer


:cd %D

Or make a custom command and use it:

command! cdp :cd %D

Thank you! It's so nice from you that you're still replying to question that fast c(^-^)c


Is that the same as :sync?

From the docs:
> :sync [relative path]
> change the other pane to the current pane directory or to some path
> relative to the current directory. Using of macros is allowed.


:sync works in the opposite direction: copies current path to the other view.

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.

Support Ukraine