I was having some trouble using the suggested inverse search command from the docs, where the focus would shift back to Sumatra. The command is (from line 783 of the help doc, under "FAQ"):
However, from Vim's remote.txt help doc, line 125:
Win32 Note: Making the Vim server go to the foreground doesn't always work,
because MS-Windows doesn't allow it. The client will move the server to the
foreground when using the --remote or --remote-wait argument and the server
name starts with "g".
I haven't really used the command server stuff before, but as far as I can tell, the following code is almost functionally equivalent to the above, but will shift the window focus to Vim:
I tried to add a normal zz to that chain of Ex commands but it always threw errors. I figure getting the focus to shift consistently is more important than centering the line. I also don't know how to deal with the "if the server name starts with 'g'" nonsense, but the default server names (GVIM, GVIM1, etc.) work just fine.
I will test this later when I have access to a Linux machine, and will submit a PR if it is warranted. But I'm very much a Linux beginner and wanted to check that the shift from --remote-send to --remote-silent will not break things for the wider (more Linux-y) community.
(Also, many thanks for the plugin. I'm still transitioning from Latex-Suite but I'm really enjoying it so far.)
I was having some trouble using the suggested inverse search command from the docs, where the focus would shift back to Sumatra. The command is (from line 783 of the help doc, under "FAQ"):
However, from Vim's
remote.txt
help doc, line 125:I haven't really used the command server stuff before, but as far as I can tell, the following code is almost functionally equivalent to the above, but will shift the window focus to Vim:
I tried to add a
normal zz
to that chain of Ex commands but it always threw errors. I figure getting the focus to shift consistently is more important than centering the line. I also don't know how to deal with the "if the server name starts with 'g'" nonsense, but the default server names (GVIM, GVIM1, etc.) work just fine.I will test this later when I have access to a Linux machine, and will submit a PR if it is warranted. But I'm very much a Linux beginner and wanted to check that the shift from
--remote-send
to--remote-silent
will not break things for the wider (more Linux-y) community.(Also, many thanks for the plugin. I'm still transitioning from Latex-Suite but I'm really enjoying it so far.)