1
0
mirror of https://github.com/amix/vimrc synced 2025-02-28 14:12:51 +08:00
amix-vimrc-mirror/my_configs.vim
2013-05-07 22:07:58 +08:00

55 lines
1.5 KiB
VimL

"" This file contains some option I like
" line number
set nu
" the color I used to
colorscheme desert
let tmpcolumn=$COLUMNS
execute "set columns=".tmpcolumn
""""""""""""""""""""""""
" [my plugin setup]
"
" ctags
set tags=tags;
set tags+=~/.vim/systags
set autochdir
" cscope
if has("cscope")
set csprg=/usr/bin/cscope
set csto=1
set cst
if filereadable("cscope.out")
cs add cscope.out .
elseif filereadable("../cscope.out")
cs add ../cscope.out ..
elseif filereadable("../../cscope.out")
cs add ../../cscope.out ../..
elseif filereadable("../../../cscope.out")
cs add ../../../cscope.out ../../..
elseif filereadable("../../../../cscope.out")
cs add ../../../../cscope.out ../../../..
elseif filereadable("../../../../../cscope.out")
cs add ../../../../../cscope.out ../../../../..
elseif filereadable("../../../../../../cscope.out")
cs add ../../../../../../cscope.out ../../../../../..
endif
set csverb
endif
nmap <C-@>s :cs find s <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>g :cs find g <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>c :cs find c <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>t :cs find t <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>e :cs find e <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>f :cs find f <C-R>=expand("<cword>")<CR><CR>
nmap <C-@>i :cs find i ^<C-R>=expand("<cword>")<CR>$<CR>
nmap <C-@>d :cs find d <C-R>=expand("<cword>")<CR><CR>
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1