Vim Tips Wiki
Advertisement

Previous TipNext Tip

Tip: #1068 - Fix missing gvim context menu in Windows

Created: December 4, 2005 16:58 Complexity: basic Author: Charles Version: 5.7 Karma: 6/13 Imported from: Tip#1068

OK, so you move your vim folder and suddenly the context menu 'edit with vim' that appeared when you right click on a file in explorer is missing. To fix it, run regedit and set the following values into the correct one:

[HKEY_LOCAL_MACHINE\SOFTWARE\Vim\Gvim] 
path=C:\Program Files\vim\vim64\gvim.exe 

[HKEY_CLASSES_ROOT\CLSID\{51EEE242-AD87-11d3-9C1E-0090278BBD99}\InProcServer32] 
(Default) = C:\Program Files\vim\vim64\gvimext.dll

Comments

I tried the above and it didn't work on my WinXP Pro 64-bit workstation. Also, the syntax shown is not quite right according to the way regedit exports the content. I found one extra key in one of my systems (ThreadingModel) and don't know what it is for. Here's the registry code as regedit exported it:

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Vim] 

[HKEY_LOCAL_MACHINE\SOFTWARE\Vim\Gvim] 
"path"="D:\\Applications\\Vim\\vim64\\gvim.exe" 

[HKEY_CLASSES_ROOT\CLSID\{51EEE242-AD87-11d3-9C1E-0090278BBD99}] 

[HKEY_CLASSES_ROOT\CLSID\{51EEE242-AD87-11d3-9C1E-0090278BBD99}\InProcServer32] 
--AT--="D:\\Applications\\Vim\\vim64\\gvimext.dll" 
"ThreadingModel"="Apartment"

amerige--AT--adobe.com , January 9, 2006 19:51


I also needed the following:

[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\gvim] 
--AT--="{51EEE242-AD87-11d3-9C1E-0090278BBD99}" 


Anonymous , October 9, 2006 18:03


This don't run for Xp 64Bits

regards!

ediaz--AT--pk25.com , November 25, 2006 9:54


Anonymous , December 3, 2007 20:05


Apparently gvim isn't the only one that suffers this problem. It would be nice for a 64 bit version of the extension DLL, but this workaround should help for now.

Some Windows Explorer extensions and some Control Panel items are not displayed on computers that are running an x64-based version of Windows
http://support.microsoft.com/?id=895561

Advertisement