"Edit with VIM" Contextual Menu and Windows Vista 64
One of the first things that I install on any new Windows machine that I get is VIM . I have been using VI for years, and love having it integrated into my Windows Environment. One of my favorite features is the ability to view a file by right clicking on it and selecting the “Edit with VIM” option from the Contextual Menu.
When I installed VIM on Windows Vista 64, everything worked great except that there was no “Edit with VIM” menu option. Well off I went and found the following solution on the Vim on Vista - VIM Tips Wiki . All you have to do is the following:
- Open regedit
- Navigate to and expand: Computer\HKEY_CLASSES_ROOT\*\shell Note: Literally a * ; should be first in list
- Right click on shell
- Select New -> Key
- Right Click on the new key, and rename it to: Open with gVIm
- Left click on Open with gVIm
- In the right hand side, Right Click on (Default) and select Modify
- In the Value Data field type: Edit with Vim
- Right Click on Open with gVIm
- Select New -> Key
- Right Click on the new key, and rename it to Command
- Left click on Command
- In the right hand side, Right Click on (Default) and select Modify
- In the Value Data field type: “C:\Program Files (x86)\Vim\vim72\gvim.exe” “%1” Note: quotes (") are important!




