Vim配置 Vim+Ctags+Taglist+cscope

set nocompatible
set syntax =on
colorscheme torte
set autoindent
set cindent
set wrap
set linebreak
set tabstop =4
set softtabstop =4
set shiftwidth =4
set noexpandtab
set smarttab
set number
set nobackup
set enc=utf-8
set fencs=utf-8,ucs-bom,shift-jis,gb1803,gbk,cp936
set langmenu=ZH_CN.UTF-8
set helplang=cn
set showmatch
filetype on
filetype plugin on
filetype indent on

""""""""""""""""""ctags""""""""""""""""""""""

map :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q . 
set tags=tags;
set autochdir


""""""""""""""""Taglist""""""""""""""""""""""

let Tlist_Auto_Open =1
let Tlist_Ctags_Cmd ='/usr/bin/ctags'
let Tlist_Show_One_File =1
let Tlist_Exit_OnlyWindow =1
let Tlist_Use_Right_Window =1




""""""""""""""""""cscope""""""""""""""""""""""


set cscopequickfix =s-,c-,d-,i-,t-,e-
if has("cscope")
	set csprg =/usr/bin/cscope
	set csto =1
	set cst
	set nocsverb

	if filereadable("cscope.out")
		cd add cscope.out
	endif
	set csverb
endif


你可能感兴趣的:(Vim)