abstract
| - To get an "Edit with Vim" context menu for 32-bit Vista:
* Download the latest version of Vim without Cream.
* Run the installer and accept the license agreement.
* On the Choose Components window, expand "Icons, menus and shortcuts".
* Check the box for "Add Contextual Menu".
* Finish the install. Vista 64: Install gvim72.exe from [1] See building instructions at [2] This version is a 64-bit compiled version with patches up to 7.2.411. This version installs graphically, supports printing and the context menus, and is installed to "Program Files" as opposed to "Program Files (x86)". Alternate 64-bit binaries can be found here: [3]. To add edit menu for Vim manually, follow these directions: After installing Vim 7.2 I found I still didn't have the "Edit with Vim" option on my contextual menu. After some rooting around online and in the registry here is what I used to resolve the issue manually. This will allow you to edit any file you right click on with Vim, which I find useful. If you are uncomfortable editing your registry, please do not try using this method! 1.
* Open regedit 2.
* Navigate to and expand: Computer\HKEY_CLASSES_ROOT\*\shell Note: Literally a * ; should be first in list 3. 1.
* Right click on shell 4. 2. 1.
* Select New -> Key 5. 3.
* Right Click on the new key, and rename it to: Open with gVIm 6. 4.
* Left click on Open with gVIm 7. 5. 1.
* In the right hand side, Right Click on (Default) and select Modify 8. 6. 2. 1.
* In the Value Data field type: Edit with Vim 9. 7.
* Right Click on Open with gVIm 1.
* Select New -> Key 10. 8.
* Right Click on the new key, and rename it to Command 11. 9.
* Left click on Command 12. 10. 1.
* In the right hand side, Right Click on (Default) and select Modify 13. 11. 2. 1.
* In the Value Data field type: "C:\Program Files (x86)\Vim\vim72\gvim.exe" "%1" Note: quotes (") are important! Yes, this is for the 32-bit binaries on 64-bit vista. (it's what available from vim.org) Snigdinna 19:26, 30 December 2008 (UTC) It seems that at least with Win7, you need C:\Program Files (x86)\Vim\vim72\gvim.exe "%1" (different quoting). You can also import the following registry file: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\Open with gvim] @="Edit with gVim" [HKEY_CLASSES_ROOT\*\shell\Open with gvim\Command] @="C:\\Program Files (x86)\\Vim\\vim72\\gvim.exe \"%1\""
|