Where's my Open-With gVim context menu option in Windows 7?

11,179

Solution 1

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

Solution 2

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

Solution 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.

Share:
11,179

Related videos on Youtube

David Mackintosh
Author by

David Mackintosh

Senior Sysadmin for a company providing both contract system administration services and internet hosted/hosting services. Windows helpdesk 1996 Unix helpdesk/junior admin 1998 software configuration/build management 1999 senior unix/network admin 2001-present

Updated on September 17, 2022

Comments

  • David Mackintosh
    David Mackintosh almost 2 years

    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?

    • Jeff Walker
      Jeff Walker over 11 years
      Old thread, but the latest vim (7.3) takes care of this.
  • David Mackintosh
    David Mackintosh almost 15 years
    Ah, you are right -- I am Windows 7-64. Didn't realize that would make a difference, but of course it would.
  • David Mackintosh
    David Mackintosh almost 15 years
    Even better. Didn't know there was a 64-bit build.