VIM 设置

 


syntax on
set ts=4 "tab=4
set nu
"hi Normal ctermbg=DarkGrey ctermfg=White
"hi Normal ctermbg=Grey ctermfg=White
set mouse=a
set st=4
"set cursorline

map <F3> :set mouse=a<cr>
map <F2> :set mouse=<cr>
" to find symbols, like function name, variable name, etc occurrance
map <F5> :cs f s
" to find the definition of symbol
map <F6> :cs f g
" to find this function which called functions
map <F7> :cs f d
" to find functions which called this function
map <F8> :cs f c
" to find a specific text string
map <F9> :cs f t
" to find file and open it
map <F10> :cs f f

" the following is for ctag window control
map <F4> :TlistToggle<cr>
map <F1> :cs add cscope.out<cr>
map <C-n> :tn <cr>
map <C-p> :tp <cr>
map <C-l> :tselect <cr>

"add myself,map tabnew
map <F11> :tabnew
set ai
set tags=tags
set autochdir
set laststatus=2 "display the state bar
set is "start search
set hls
set cin "C/C++
set cino=:0g0t0(sus
set sw=4 "auto indent=4
set paste
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
"set statusline+=%{strftime(\"%m-%d\ %H:%M\")}

let Tlist_Exit_OnlyWindow=1

你可能感兴趣的:(VIM 设置)