Tuesday, April 27, 2010

Re: one instance of gvim on windows?

On 02/03/10 08:34, Tom Link wrote:
>> On Windows, is it possible to prevent new instances of gvim and have
>> the document open in the current gvim by double clicking?
>
> I open files with a batch script that runs gvim with the --remote-
> silent argument. I don't start gvim directly because the filename is
> likely to change after updates. You could also add an respective entry
> to the registry -- IIRC an example can be found on the vimtips wiki.
>
> tom
>

The filename doesn't change; what may change (on Windows, not on Unix)
is the name of the directory containing it; though it only changes at a
version change (i.e., it won't change until Vim 7.3 alpha comes out).
However if you keep the directory containing the Vim executable in the
PATH, you can start it without a path name. Just make sure (if you have
several versions installed) that the executable you want to launch by
default is the first one of that name in the PATH.

Best regards,
Tony.
--
Ask Not for whom the Bell Tolls, and You will Pay only the
Station-to-Station rate.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment