修改了一下,做了很多改进。比如自动对c++代码提示。codesnipet之类。
为了各个插件不冲突。将各个语言独立写了各自的工程配置,比如c,c++就在.vim/cpp中。
去掉minibuf这个麻烦,或是说buggy的插件。要buflist 按"\\"
去掉了c.vim,自己对c++,c的理解写到了~/.vim/cpp/project.vim,需要看快捷键的同学可以看看。编译是F5,去掉不必要的界面是f7/ctrl+f7,此外为了修正qucikfix的问题,用了side-c,具体的参见打开c/c++菜单
强调了c,c++支持,里面tag了c和c++的文档,
新的c++外观,textmate样式的(在编ruby,perl等脚本代码时候)c++用的是inkpot。
对stl的关键字的支持。
树形文件管理:
对Doxygen的支持。
增加了自己写的字典插件,需要ruby支持。(@@貌似上传不了,因为太大,30多M)其中vim中有高亮,gvim中没:
需要代码感知的话,自己放一个tags到~/.vim/cpp下面,名字就叫tags(不在压缩文件中,因为我的太大)
最后代码时候需要的帮助也加了,现在加了c的文档和c++stl的文档,这个是sgi stl的官方文档,里面还有例子:
这是文档的快捷键
""""""""""""""""""""""""""""""""""
"crefvim
"There are several ways to specify a word CRefVim should search for in order
"to view help:
"
" <Leader>cr normal mode: get help for word under cursor
" Memory aid cr: (c)-(r)eference
" <Leader>cr visual mode: get help for visually selected text
" Memory aid cr: (c)-(r)eference
" <Leader>cw: prompt for word CRefVim should search for
" Memory aid cw: (c)-reference (w)hat
" <Leader>cc: jump to table of contents of the C-reference manual
" Memory aid cc: (c)-reference (c)ontents
"
"Note: by default <Leader> is \, e.g. press \cr to invoke C-reference
"
"Note: The best way to search for an operator (++, --, %, ...) is to visually
"select it and press <Leader>cr.
""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""
"stlrefvim
""""""""""""""""""""""""""""""""""""
autocmd FileType c,cpp,cs source ~/.vim/cpp/stlrefvim.vim
"For example, in the expression:
" std::for_each(start, end, PrintFunc)
" place the cursor over for_each and type <Leader>tr to go to documentation for this function. Type <Leader>te to go to an example that uses this function.
--------------------------------------------------------------------------------------------------------------------
最后由于是在gentoo下面写的,所以不知道我编译的vim和大家一样不:
VIM - Vi IMproved 7.2 (2008 Aug 16, compiled Nov 1 2008 03:12:11)
Included patches: 1-25