Opening files in VIM editor via context menu is quite simple, but what if I want to open a file in a new tab in existing window?
The solution is quite simple, at least on my Windows 7 machine, but I guess it shoshould work also on previous versions of Windows.
1. Open regedit
2. Find hkey_classes_root/*/Shell
3. Right click on "shell" folder and create a new key and call it, I. e. "Open in a new Vim tab"
4. Right click on currently created folder and create a new key called "command"
5. into default string value enter following code:
C:\apps\Vim\vim73\gvim.exe
--remote-tab-silent %1
Ofcource the path to your gvim executable must be valid.
[Custom_frame_center shadow = "on"]
[/Custom_frame_center]
6. check it
[Custom_frame_center shadow = "on"]
[/Custom_frame_center]
Add icon to your created contextual menu
If you want to add an icon to your contextual shortcut, follow these few steps
1. Find your previusly created item in regedit
2. Right click on the item and select "expandable string value"
[Custom_frame_center shadow = "on"]
[/Custom_frame_center]
3. Change the "name" of the new value to "icon"
4. Make modification and add path to your icon file
[Custom_frame_center shadow = "on"]
[/Custom_frame_center]
5. Check your update
[Custom_frame_center shadow = "on"]
[/Custom_frame_center]