1、添加edit with vim选项,每个文件打开一个新窗口。新建reg文件,代码如下:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT*Shelledit with vim] @="edit with vim" [HKEY_CLASSES_ROOT*Shelledit with vimcommand] @=""D:\Program Files\Vim\vim71\gvim.exe" "%1""
2、添加vim tabnew选项,每个文件打开一个新标签页。新建reg文件,代码如下:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT*Shellvim tabnew] @="vim tabnew" [HKEY_CLASSES_ROOT*Shellvim tabnewcommand] @=""D:\Program Files\Vim\vim71\gvim.exe" -p --remote-tab-silent "%1" "%*""
3、添加vim hex选项,用以十六进制打开文件。新建reg文件,代码如下:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT*Shellvim hex] @="vim hex" [HKEY_CLASSES_ROOT*Shellvim hexcommand] @=""D:\Program Files\Vim\vim71\gvim.exe" -b "%1""
这里还要在vimrc配置文件中加入一下内容:
augroup Binary au! au BufReadPost *.* if &bin | %!xxd au BufReadPost *.* set ft=xxd | endif augroup END
楼主会LINUX? 我最近在看鸟哥的LINUX私房菜,努力学习中,现在还是菜鸟中的小白。。
嘿嘿,不会,只是装着玩而已。你不妨试试LFS,装一遍这种系统会好爽的。
要死不少脑细胞