安装cscope,ctags
neocomplcache:
http://www.vim.org/scripts/script.php?script_id=2620
let g:neocomplcache_enable_at_startup = 1 >> vimrc
snipMate:
http://www.vim.org/scripts/script.php?script_id=2540
taglist:
http://www.vim.org/scripts/script.php?script_id=273
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
map <F3> :silent! Tlist<cr>
OmniCppComplete:
http://www.vim.org/scripts/script.php?script_id=1520
ctags -R --c++-kinds=+p --fields=+iaS --extra=+q
NERD Commenter :
http://www.vim.org/scripts/script.php?script_id=1218
map <c-h> <leader>c<space>
DoxygenToolkit:
http://www.vim.org/scripts/script.php?script_id=987
"let g:DoxygenToolkit_commentType = "C++"
map fg : Dox<cr>
let g:DoxygenToolkit_authorName="Yisen [email protected] QQ:179338996"
let g:DoxygenToolkit_licenseTag="My own license"
let g:DoxygenToolkit_undocTag="DOXIGEN_SKIP_BLOCK"
let g:DoxygenToolkit_briefTag_funcName = "no"
let g:DoxygenToolkit_maxFunctionProtoLines = 30
map fh : DoxAuthor<cr>
maketags:
#!/bin/sh
ctags -R --c++-kinds=+p --fields=+iaS --extra=+q
find . -name "*.h" -o -name "*.c" -o -name "*.cpp" > cscope.files
rm cscope.*.out
cscope -bq -i cscope.files
global:
yaourt global
htags --suggest2 //放到http server下查看
gvimrc:
"-----------------
"base config
set nocp "no vi mode
set ru "status
set nu
set hls "high light search
syntax on
set backspace=indent,eol,start "set backspace
set whichwrap=b,s,<,>,[,] "set wrap key
set encoding=utf-8
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
set ambiwidth=double "set unicode width
filetype plugin indent on "file detect
set comments=://
set list
set lcs=tab:\|\
"set fdm=syntax
"------------------
"text edit config
set sw=4
set ts=4
"set et "tab replace to space
"set smarttab "tab equale 4 spaces
"------------------
"C/C++ config
set sm "()
set cin
set cino=:0g0t0(susj1
set ai
set completeopt=longest,menuone,preview
"------------------
"other config
set selection=inclusive
set wildmenu
colo graywh
"------------------
"gui config
set nowrap
set mousemodel=popup
set mouse=a
set guioptions+=b
set gfw=YaHei\ Consolas\ Hybrid\ 10.5
set guifont=YaHei\ Consolas\ Hybrid\ 12
"------------------
"neocomplcache
let g:neocomplcache_enable_at_startup = 1
"------------------
"taglist
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
map <F3> :silent! Tlist<cr>
"------------------
"nerdCommenter
map <c-h> <leader>c<space>
"------------------
"DoxygenToolkit
"let g:DoxygenToolkit_commentType = "C++"
map fg : Dox<cr>
map fh : DoxAuthor<cr>
let g:DoxygenToolkit_authorName="Yisen | [email protected] | QQ:179338996"
let g:DoxygenToolkit_licenseTag="My own license"
let g:DoxygenToolkit_undocTag="DOXIGEN_SKIP_BLOCK"
let g:DoxygenToolkit_briefTag_funcName = "no"
let g:DoxygenToolkit_maxFunctionProtoLines = 30