vim的配置

修改~/.vimrc


set shiftwidth=4
set tabstop=4
set mouse=a
"set selection=exclusive
"set selectmode=mouse,key
set ai! "自动缩进
"set ignorecase
"set noerrorbells " 去掉滴滴声音
set incsearch "搜索时逐字符高亮
set formatoptions=tcrqn "自动格式化
"set autoindent "自动缩进
set hlsearch "高亮搜索结果

set foldmethod=syntax
set foldlevel=100  " 启动vim时不要自动折叠代码


"set statusline=%F%m%r,%Y,%{&fileformat}\ \ \ ASCII=\%06b,HEX=\%04B\ \ \ %05l\ line,\ %04c%V\ column,\ %p%%\ \ \ [\ %02L\ lines\ in\ all\ ]


set tags=./tags


" vim mouse
nnoremap <silent> <F7> :set mouse=<CR>
nnoremap <silent> <F6> :set mouse=a<CR>
nnoremap <silent> <F10> :make clean;make<CR>


map <F4> za
map <F8> zM
map <F9> zR
map <F3> \x


let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1




" Section TagList
"let Tlist_Show_One_File=1
"let Tlist_Exit_OnlyWindow=1
nnoremap <silent> <F5> :Tlist<CR>


"cscope 快捷键配置
map <C-k> :cs f d <C-R>=expand("<cword>")<CR><CR>  
map <C-l> :cs f c <C-R>=expand("<cword>")<CR><CR>  


filetype plugin on
filetype indent on

你可能感兴趣的:(linux,linux,linux)