(Change to TipImported template + severe manual clean) |
(Move categories to tip template) |
||
Line 9: | Line 9: | ||
|version=5.7 |
|version=5.7 |
||
|rating=43/15 |
|rating=43/15 |
||
+ | |category1=Windows |
||
+ | |category2= |
||
}} |
}} |
||
To add 'Edit with Vim' to the Windows File Explorer context menu: |
To add 'Edit with Vim' to the Windows File Explorer context menu: |
||
Line 49: | Line 51: | ||
---- |
---- |
||
− | [[Category:Windows]] |
Revision as of 04:02, 25 April 2008
Tip 636 Printable Monobook Previous Next
created January 14, 2004 · complexity basic · author mosh · version 5.7
To add 'Edit with Vim' to the Windows File Explorer context menu:
- Save this file as edit-with-vim.reg,
- Make sure the paths are right for your machine
- Change each fowardslash to backslash with the vim command :%s,/,\\,g
- Click on it in Explorer or import this file in regedit.exe.
- The double quotes are needed for filenames with spaces.
- 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/""
Comments
Why don't you use GvimExt?
i thought this facility is already available if you install gvim... am i wrong?
This will allow Window's Explorer to launch Vim on directories also (the paths have double backslashes).
[HKEY_CLASSES_ROOT\Directory\shell\vim_dired] @="gvim dired" [HKEY_CLASSES_ROOT\Directory\shell\vim_dired\Command] @="c:\\bin32\\gvim.exe \"%1\""