> -----Original Message-----
> From: Stelian Iancu [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 22, 2006 3:59 AM
> To: vim@vim.org
> Subject: Allow only one instance of vim on Windows
> 
> Hello there,
> 
> I've been using vim on and off for about 5 years now but now 
> I've decided to switch entirely to vim.
> 
> Up until now I've used UltraEdit and this one can be 
> configured that every file that I open with it is opened in 
> another tab of the existing instance. Can vim 7.x be 
> configured to behave the same?

Depends on how you work within windows to launch files, which will dictate
how easy this is.

For example, on windows I always work from command prompts.
When I want to edit a file I type:
vimt.cmd filename

Vimt.cmd does the following:

********
@rem Default the instance name to GVIM - Vims default
@set vim_instance=GVIM

@rem Override it if necessary
if %2. NEQ . set vim_instance=%2
@echo on
@echo %0
start gvim.exe --servername %vim_instance% --remote-tab-silent %1 
********

That will do what you want.

HTH,
Dave

Reply via email to