将gvim加到右键菜单(win10)

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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值