12

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?

1
  • 1
    Old thread, but the latest vim (7.3) takes care of this. Commented Jan 22, 2013 at 3:20

5 Answers 5

13

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

4

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

3

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.

1
  • Ah, you are right -- I am Windows 7-64. Didn't realize that would make a difference, but of course it would. Commented Sep 8, 2009 at 18:20
0

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 :))

1
  • Even better. Didn't know there was a 64-bit build. Commented Sep 22, 2009 at 21:44
0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .