On Jun 11, 6:39 am, "Grizzly(Francis Smit)" <[email protected]>
wrote:
> tvim is a gui wrapper around gvim's remote interface, it does two things
> 1). lets you open files in any already running copy of gvim (lets you
> select which).
> 2). opens the files in tabs
>
> it works by calling gvim --serverlist to get a list of running gvim
> servers then it lets u choose one or start a new instance
> then it opens the files in it's argument list in that server.
>
> by calling
>
> gvim --servername Servername --remote-tab arg1 arg2 arg3 ...
>
It's not a GUI, but I use the following cmd.exe batch file to do much
the same thing in Windows XP:
<code>
@echo off
setlocal
REM Allows you to select which instance of Vim to launch a file or
files in.
REM
REM Usage: findvim.bat {file(s) to launch}
REM
REM If calling from your SendTo directory (recommended), just target
the batch
REM file with the shortcut.
REM
echo Available Vim servers:
call vim --serverlist
set /p INSTANCE="Enter desired Vim instance (leave blank for default):
"
if not "%INSTANCE%"=="" set INSTANCE=--servername %INSTANCE%
REM Vim will fork to launch, so using "start" would leave a command
window
REM hanging around. Using "call" is okay, because "gvim" is really a
batch file
REM that will launch the real thing.
call gvim %INSTANCE% --remote-tab-silent %*
:END
endlocal
echo on
:RETURN
</code>
Simply place a shortcut to this batch file in your SendTo directory
for easy access. See our Vim Tip on this topic:
http://vim.wikia.com/wiki/Add_Vim_to_Windows_Send_To_menu
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---