Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have gVim installed. Under Vista and XP, this offered me an addition to either the object context menu of "Edit with gVim", or an addtion to the "Open With" context menu of "gVim". This would let me send arbitrary files to gVim for editing.

Under Windows 7 64-bit, I have installed gVim -- twice, as it happens -- and there's no menu item.

How do I add an option to send arbitrary files to gVim for viewing/editing?

share|improve this question
1  
Old thread, but the latest vim (7.3) takes care of this. –  Jeff Walker Jan 22 '13 at 3:20

5 Answers 5

up vote 8 down vote accepted

Found a link on the internet which describes what to do: http://davidvielmetter.com/?p=1094

If you want to have the same context menu functionality you got from gVim in 32-bit Windows you’ll need to make the following changes to the [HKEY_CLASSES_ROOT\*\shell\] key in the registry:

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\\vim73\\gvim.exe \"%1\""

The page includes a .reg fragment which will work for gVim 7.3

share|improve this answer

Version 7.3 fixes this problem. Use the "self-installing executable". http://www.vim.org/download.php#pc

share|improve this answer

It should work out of the box on Windows 7 32-bit. I have gotten it to work on my Windows 7 RC machine.

If you want this to work on Windows 64-bit (any edition), then follow the Fix Missing GVim Context Menu instructions from the gvim website.

share|improve this answer
    
Ah, you are right -- I am Windows 7-64. Didn't realize that would make a difference, but of course it would. –  David Mackintosh Sep 8 '09 at 18:20

you could install the "right" binaries as well: http://code.google.com/p/vim-win3264/downloads/list. its 'install.bat' should create the right registry entries for you (plus the fact that you have a 64bit binary :))

share|improve this answer
    
Even better. Didn't know there was a 64-bit build. –  David Mackintosh Sep 22 '09 at 21:44

Here are my complete directions for building GVim 7.2 for x64 and for creating the setup file.

GVim gets installed to "Program Files" as it should, printing works fine, and the integrated menus all work like a charm.

Directions & link to setup file: http://ionipti.blogspot.com/2010/04/build-gvim-72-x64-and-create-installer.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.