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