2009年12月12日 星期六

Add "Edit with Vim" into Windows 7 context menu

Ref: http://davidvielmetter.com/?p=1094

Two solutions are provided by David:

1) Edit the registry

Save the following content as a .reg file and merge with your registry
---8<---8<---8<---8<--- cut here ---8<---8<---8<---8<---
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Edit with Vim]

[HKEY_CLASSES_ROOT\*\shell\Edit with Vim\command]
@="C:\\Program Files (x86)\\Vim\\vim72\\gvim.exe \"%1\""
---8<---8<---8<---8<--- cut here ---8<---8<---8<---8<---

2) Vim as a "send to" target

Place the link of the "gvim.exe" into

C:\Users\\AppData\roaming\microsoft\windows\SendTo

2 則留言: