I am trying to get the Edit with Vim context menu to open files in a new tab of the previously opened Gvim instance (if any).
Currently, using Regedit I have modified this key:
\HKEY-LOCAL-MACHINE\SOFTWARE\Vim\Gvim\path = 'C:\Programs\Vim\vim72\gvim.exe' -p --remote-tab-silent '%*'
The registry key type is REG_SZ.
This almost works… Currently it opens the file in a new tab, but it also opens another tab (which is the active tab) the tab is labeled \W\S\--literal and the file seems to be trying to open the following file.
C:\Windows\System32\--literal
I think the problem is around the '%*' – I tried changing that to '%1' but if i do that I get an extra tab called %1.
Affected version
- Vim version 7.2 (same behaviour on 7.1)
- Windows vista home premium
Thanks for any help.
David.
Try setting it to: ‘C:\Programs\Vim \vim72\gvim.exe’ -p –remote-tab-silent ‘%1’ ‘%*’
See: http://www.vim.org/tips/tip.php?tip_id=1314
EDIT: As pointed out by Thomas, vim.org tips moved to: http://vim.wikia.com/
See: http://vim.wikia.com/wiki/Add_open-in-tabs_context_menu_for_Windows