裡頭參考了很多網頁. 感謝先進們~
if has("cscope")
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb
" add any database in current directory
if filereadable("cscope.out")
cs add cscope.out
" else add database pointed to by environment
elseif $CSCOPE_DB != ""
cs add $CSCOPE_DB
endif
set csverb
set cscopetag
set cscopequickfix=s-,g-,c-,d-,t-,e-,f-,i-
endif
" 不自動存檔
set nobackup
" 自動縮排
set autoindent
set cindent
" 顯示行列位置
set ruler
" 自動找對應括號
set showmatch
" tab 設置
set shiftwidth=4
set tabstop=4
" 語法高亮度
syntax on
"顯示行號"
set number
"支援滑鼠"
set mouse=a
" 把 tab 展開成空白.
set et
" 相反地設定
set noet
"設定高亮度搜索
set hlsearch
"輸入字串就顯示匹配點
set incsearch
let Tlist_Use_Right_Window=1
let Tlist_File_Fold_Auto_Close=1
" 垂直分割視窗, 且在左邊開啟檔案管理員介面
map
"
map
"
map
"
map
"
map
"
inoremap
"
map
map
"
map
"當設為1的話, 當呼叫出TagList的分割時, 會將TagList的分割視窗OnFocus.
"let Tlist_GainFocus_On_ToggleOpen = 1
沒有留言:
張貼留言