更新的vimrc

  1 set number

  2 set list

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

  4 set expandtab

  5 set tabstop=4

  6 set shiftwidth=4

  7 set incsearch

  8 set hlsearch

  9 set wildmenu

 10 set wildmode=list,full

 11 set autoindent

 12 set cindent

 13 set fileformats=dos,unix,mac

 14 set fileformat=unix

 15 set hidden

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

 17 set termencoding=utf-8

 18 set encoding=utf-8

 19 set path+=**;$PWD

 20 set statusline=/ %t/ /[BUF=%n]%</[POS=%04l,%04v]/[LEN=%04L]/[ASCII=/%03.3b]/[HEX=/%02.2B]/[TYPE=%Y]/[FF=%{&ff}]/[%p%%]%w%r%h%m

 21 "set foldmethod=syntax

 22 "set foldmethod=indent

 23 autocmd FileType c,cpp  setl fdm=syntax | setl fen

 24 filetype on

 25 let Tlist_Auto_Open = 1

 26 "let Tlist_Show_One_File = 1

 27 let Tlist_Exit_OnlyWindow = 1

 28 let Tlist_Auto_Update = 1

 29 let Tlist_Enable_Fold_Column = 1

 30 let Tlist_File_Fold_Auto_Close = 1

 31 let Tlist_WinWidth = 25

 32 if has("cscope")

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

 34 >---set csto=0

 35 >---set cst

 36 >---set nocsverb

 37 >---set cscopequickfix=e-

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

 39 >--->---cs add cscope.out

 40 >---elseif $CSCOPE_DB != ""
 41 >--->---cs add $CSCOPE_DB
 42 >---endif
 43 >---nmap <C-@>s :cs find s <C-R>=expand("<cword>")<CR><CR>>-
 44 >---nmap <C-@>g :cs find g <C-R>=expand("<cword>")<CR><CR>>-
 45 >---nmap <C-@>c :cs find c <C-R>=expand("<cword>")<CR><CR>>-
 46 >---nmap <C-@>t :cs find t <C-R>=expand("<cword>")<CR><CR>>-
 47 >---nmap <C-@>e :cs find e <C-R>=expand("<cword>")<CR><CR>>-
 48 >---nmap <C-@>f :cs find f <C-R>=expand("<cfile>")<CR><CR>>-
 49 >---nmap <C-@>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
 50 >---nmap <C-@>d :cs find d <C-R>=expand("<cword>")<CR><CR>>-
 51 endif
 52 
 53 """"""""""""""""""""""""""""""
 54 " showmarks setting
 55 """"""""""""""""""""""""""""""
 56 " Enable ShowMarks
 57 let showmarks_enable = 1
 58 " Show which marks
 59 let showmarks_include = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
 60 " Ignore help, quickfix, non-modifiable buffers
 61 let showmarks_ignore_type = "hqm"
 62 " Hilight lower & upper marks
 63 let showmarks_hlline_lower = 1
 64 let showmarks_hlline_upper = 1
 65 
 66 "syntax enable
 67 "colorscheme darkblue

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