Tip #636: Adding Vim to MS-Windows File Explorer Menu
tip karma |
Rating 31/12, Viewed by 1586
|
created: |
|
January 14, 2004 17:53 |
|
complexity: |
|
basic |
author: |
|
http://www.cs.albany.edu/~mosh |
|
as of Vim: |
|
5.7 |
What: To Add 'Edit with Vim' to 'Windows File Explorer'
'right click Menu'
1. Save this file as edit-with-vim.reg,
2. Make sure the paths are right for your machine
3. Change each fowardslash to backslash
with the vim command :%s,/,\\,g
4. Click on it in explorer or import this file in regedit.exe
voila, your explorer right-click menu will have extra action items,
it's better than the send-to.
5. The double quotes are needed for filenames with spaces.
6. The '*' means 'for all files'.
REGEDIT4
[HKEY_CLASSES_ROOT/*/shell]
[HKEY_CLASSES_ROOT/*/shell/vim]
@="Edit with &vim;"
[HKEY_CLASSES_ROOT/*/shell/vim/command]
@="c://bin32//gvim.exe /"%1/""
[HKEY_CLASSES_ROOT/*/shell/_emacs]
@="Edit with &Emacs;"
[HKEY_CLASSES_ROOT/*/shell/_emacs/command]
@="c://emacs//bin//runemacs.exe /"%1/""
<<getting colors to work on solaris |
execute accidently inserted commands >>
Additional Notes
|