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

How can I execute a command after vicmd?

I want it to open vim in another terminal and then activate that terminal. I managed to get it to open the file in vim in another terminal, but I need to run an additional command (using wmctrl) to activate that terminal.

Thank you

1 Answer

+1 vote
selected by
Best answer

'vicmd' doesn't have to point to Vim, it can be your custom script which does both those things (see scripts/ directory):

vim --server-name name --remote ... "$@"
wmctrl ...
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