On windows I use gvim, and like to keep just one gvim instance running. Most of the time I open files like this:
gvim -p --remote-tab-silent FILES
.
However, sometimes I want to open a tag in that same remote gvim server in a new tab. If I do
gvim -t MYFUNCTION --remote-tab-silent
it tells me it wants a file name after the last argument.
If I do gvim --remote-tab-silent -t MYFUNCTION
it opens a new tab with a split window with two files, one named literally -t
and the other named MYFUNCTION
.
I've also tried using --
to end the arguments list, but then I end up editing a file named --
.
How can I open a tag in my existing gvim instance?
:tag
whatever? Why do you need this on the command linevim --remote-expr "execute('tag MYFUNCTION')"
? Orvim --remote-send ":tag MYFUNCTION<cr>"
*
register on windows gvim? If so::tag <C-r>*
...