VIM小的设置

来源:互联网 发布:超声波老鼠软件下载 编辑:程序博客网 时间:2024/06/05 17:06

1:代码折叠

set foldenable " enable code foldset fdm=indent " set fold method to indent


2:显示行号

set number


3:设置字体和颜色

set gfn=Monospace\ 12set shell=/bin/bashif has("gui_running")    set guioption-=T    set t_Co=256    set background=dark    colorscheme desertelse    colorscheme zellner    set backgrount=darkendif

4:将TAB转换成4个空格

set expandtabset tabstop=4set shiftwidth=4set smarttab

5:利用%,进行匹配跳转

let b:match_ignorecase=0let b:match_words=    \ '\<begin\>:\<end\>,'.    \ '\<function\>:\<endfunction\>,'.     \ '\<task\>:\<endtask\>,'