https://my.oschina.net/i33/blog/43013
将gvim加到右键菜单
1.打开gvim的安装目录,在 \Vim\vim73 ,打开install.exe,内容如下:
Install will do for you:
1 Install .bat files to use Vim at the command line:
2 Create C:\Windows\vim.bat
3 Create C:\Windows\gvim.bat
4 Create C:\Windows\evim.bat
5 Create C:\Windows\view.bat
6 Create C:\Windows\gview.bat
7 Create C:\Windows\vimdiff.bat
8 Create C:\Windows\gvimdiff.bat
9 Create C:\Windows\vimtutor.bat
10 Do NOT change startup file D:\commonTools\Vim_vimrc
14 Install an entry for Vim in the popup menu for the right
mouse button so that you can edit any file with Vim
15 Add Vim to the “Open With…” list in the popup menu for the right
mouse button so that you can edit any file with Vim
16 Add Vim to the Start menu
17 Create a desktop icon for gVim
18 Create a desktop icon for gVim Easy
19 Create a desktop icon for gVim Read-only
20 Do NOT create plugin directories
To change an item, enter its number
Enter item number, h (help), d (do it) or q (quit):
1-9 用来在系统PATH中创建批处理文件,这样你在cmd中输入的命令就会被执行。
这里,我们主要关注第14个选项 – 通过在右键菜单提供选项,让你编辑任何文件
2.不论你是因为何种原因导致 右键 的gvim编辑功能失效,只需要输入:
如果你单独输入某个数字,会改变该选项的内容,要执行某个选项,就输入 “d xx” , 效果如下:
D:\Program Files (x86)\Vim\vim81\install.exe
双击install.exe
输入n
d 14