阿宝 Keep Walking......


JUST DO IT, DO YOUR BEST ! -- 勿在浮沙筑高台

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  49 Posts :: 6 Stories :: 26 Comments :: 0 Trackbacks

在Windows使用Vim通常是在文件上右击,在弹出菜单上选择Edit with Vim。但是默认都是新打开一个窗口,而我还是比较习惯使用Tab页的方式来打开多个文档。下面是多Tab页Vim截图



想要实现这个功能,我去Google了一把,大致的操作方法是要写注册表来修改gvim的启动参数。

1. 创建一个vim.reg
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Edit with Vim]
@="Edit with 
&Vim"
[HKEY_CLASSES_ROOT\*\shell\Edit with Vim\command]
@="\"D:\Program Files\Vim\vim72\gvim.exe\" -p --remote-tab-silent \"%1\" \"%*\""
2. 导入vim.reg

注意:
但是不知道为什么这个值并没有导入,在使用vim的时候总是提示找不到程序。解决方法如下
1.运行regedit
2.搜索Edit with Vim
将其中的键值改为 "D:\Program Files\Vim\vim72\gvim.exe" -p --remote-tab-silent "%1" "%*"

下面是Vim帮助文件的中文文档,感谢译者
http://vimcdoc.sourceforge.net/doc/help.html


posted on 2009-02-15 17:35 阿宝 阅读(2364) 评论(0)  编辑  收藏 所属分类: Vim

只有注册用户登录后才能发表评论。


网站导航: