更新的vimrc

  1 set nu

  2 set list

  3 set listchars=tab:>-,trail:-

  4 set tabstop=2

  5 set incsearch

  6 set wildmode=list:full

  7 set wildmenu

  8 set ai

  9 set ffs=dos,unix,mac

 10 set ff=unix

 11 set shiftwidth=2

 12 set cindent

 13 set hidden

 14 set hlsearch

 15 set fileencodings=utf-8,gbk,gb2312,gb18030

 16 set termencoding=utf-8

 17 set encoding=utf-8

 18 set path+=**;$PWD

 19 filetype on

 20 let Tlist_Auto_Open = 1

 21 "let Tlist_Show_One_File = 1

 22 let Tlist_Exit_OnlyWindow = 1

 23 let Tlist_Auto_Update = 1

 24 let Tlist_Enable_Fold_Column = 1

 25 let Tlist_File_Fold_Auto_Close = 1 

 26 if has("cscope")

 27 >-set csprg=/usr/bin/cscope

 28 >-set csto=0

 29 >-set cst

 30 >-set nocsverb

 31 >-set cscopequickfix=e-

 32 >-if filereadable("cscope.out")

 33 >->-cs add cscope.out--

 34 >-elseif $CSCOPE_DB != ""

 35 >->-cs add $CSCOPE_DB

 36 >-endif

 37 >-nmap <C-@>s :cs find s <C-R>=expand("<cword>")<CR><CR>>-

 38 >-nmap <C-@>g :cs find g <C-R>=expand("<cword>")<CR><CR>>-

 39 >-nmap <C-@>c :cs find c <C-R>=expand("<cword>")<CR><CR>>-

 40 >-nmap <C-@>t :cs find t <C-R>=expand("<cword>")<CR><CR>>-

 39 >-nmap <C-@>c :cs find c <C-R>=expand("<cword>")<CR><CR>>-
 40 >-nmap <C-@>t :cs find t <C-R>=expand("<cword>")<CR><CR>>-
 41 >-nmap <C-@>e :cs find e <C-R>=expand("<cword>")<CR><CR>>-
 42 >-nmap <C-@>f :cs find f <C-R>=expand("<cfile>")<CR><CR>>-
 43 >-nmap <C-@>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
 44 >-nmap <C-@>d :cs find d <C-R>=expand("<cword>")<CR><CR>>-
 45 endif
 46 

你可能感兴趣的:(list,unix,dos,File,encoding,fold)