set showmatch
set incsearch
set mouse=a
set cindent
set hlsearch
set tabstop=4
set softtabstop=4
set shiftwidth=4
set nu
set tags=tags;
set autochdir
let tlist_show_one_file = 1            " -------只允许taglist显示一个文件的信息  
let tlist_exit_onlywindow = 1            " ---------当显示taglist信息的窗口是最后一个时,退出vim  
let tlist_process_file_always = 1        " -----时时更新taglist  
let tlist_auto_open = 1
"cscope插件热键
nmap cs :cs find s =expand("") 
nmap cg :cs find g =expand("") 
nmap cc :cs find c =expand("") 
nmap cd :cs find d =expand("") 
nmap ct :cs find t =expand("") 
nmap ce :cs find e =expand("") 
nmap cf :cs find f =expand("") 
nmap ci :cs find i ^=expand("")
" add any cscope database in current directory
if has("cscope")
    set cscopetag
    set csto=0
    if filereadable("cscope.out") " 若当前目录下存在cscope数据库,添加该数据库到vim
        cs add cscope.out
    elseif $cscope_db != "" " 否则只要环境变量cscope_db不为空,则添加其指定的数据库到vim
        cs add $cscope_db
    endif
endif
                                   
            
            
              
              阅读(2799) | 评论(0) | 转发(0) |