vifm and gvim automatically switch

371 Views Asked by At


To open pdf file from vifm I use: filetype *.pdf zathura %f &. And there is automatically focus me on zathura window. But when I open any text file using: filetype *.c,*.h gvim --remote-tab-silent %f & I must to press alt-tab or win-2 to switch to gvim window.
Can I focus to gvim automatically?

1

There are 1 best solutions below

4
On

For that, Vim has the remote_foreground() function. Try sending that via --remote-expr.