vim opencv
http://blog.csdn.net/fdl19881/article/details/7275203
ctags .vim: http://www.vim.org/scripts/script.php?script_id=610
taglist.vim : http://www.vim.org/scripts/script.php?script_id=273
tags for std c++ : http://www.vim.org/scripts/script.php?script_id=2358
$ ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ -f opencv /usr/include/opencv/ # for OpenCV
code_complete: http://blog.csdn.net/mdl13412/article/details/8097457
.vimrc
colorscheme desert syntax on set tabstop=4 set softtabstop=4 set shiftwidth=4 set autoindent set cindent set cinoptions={0,1s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1s set nu if &term=="xterm" set t_Co=8 set t_Sb=^[[4%dm set t_Sf=^[[3%dm endif let g:ctags_path="/usr/bin/ctags" let g:ctags_statusline=1 let g:ctags_title=1 let g:generate_tags=1 let g:ctags_regenerate=1 let Tlist_File_Fold_Auto_Close=1 "configure tags - add additional tags here or comment out not-used ones" set tags+=~/.vim/tags/cpp set tags+=~/.vim/tags/opencv " build tags of your own project with Ctrl+F12" map <C-F12> :!ctags -R --sort=yes --c++-kinds=+p --fields=+iaS --extra=+q .<CR> """""""""""""""""""""""""""""" " Tag list (ctags) 输入”:TlistOpen“时, 打开taglist窗口, ":TlistUpdate" 更新taglist, :TlistToggle“在打开和关闭间切换。 """""""""""""""""""""""""""""" let Tlist_Show_One_File = 0 "= 1 时,不同时显示多个文件的tag,只显示当前文件的 let Tlist_Exit_OnlyWindow = 1 "如果taglist窗口是最后一个窗口,则退出vim let Tlist_Use_Right_Window = 1 "在右侧窗口中显示taglist窗口 autocmd BufWritePost *.cpp :TlistUpdate " 自动刷新taglist let Tlist_Auto_Open = 1 " 默认自动打开taglist窗口 " OmniCppComplete " set the filetype to cpp format(when using c++) set nocp filetype plugin on let OmniCpp_NamespaceSearch = 1 let OmniCpp_GlobalScopeSearch = 1 let OmniCpp_ShowAccess = 1 let OmniCpp_ShowPrototypeInAbbr = 1 " show function parameters let OmniCpp_MayCompleteDot = 1 " autocomplete after . let OmniCpp_MayCompleteArrow = 1 " autocomplete after -> let OmniCpp_MayCompleteScope = 1 " autocomplete after :: let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"] " automatically open and close the popup menu / preview window au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif set completeopt=menuone,menu,longest,preview