标签:
colorscheme evening "设置背景颜色为夜间模式 set nocompatible "去掉讨厌的有关vi一致性模式,避免以前版本的一些bug和局限 set completeopt=preview,menu filetype plugin on set ruler " 打开状态栏标尺 set nocompatible set syntax=on set autoindent set cindent set tabstop=4 set softtabstop=4 set shiftwidth=4 set smarttab set number filetype plugin on filetype indent on set mouse=a set selection=exclusive set selectmode=mouse,key set showmatch set matchtime=1 set smartindent :inoremap ( ()<ESC>i :inoremap ) <c-r>=ClosePair(‘)‘)<CR> :inoremap { {}<ESC>i :inoremap {<CR> {<CR>}<ESC>O :inoremap } <c-r>=ClosePair(‘}‘)<CR> :inoremap [ []<ESC>i :inoremap ] <c-r>=ClosePair(‘]‘)<CR> :inoremap } <c-r>=ClosePair(‘}‘)<CR> function ClosePair(char) if getline(‘.‘)[col(‘.‘) - 1] == a:char return "\<Right>" else return a:char endif endfunction filetype plugin indent on set completeopt=longest,menu
标签:
原文地址:http://www.cnblogs.com/Howe-Young/p/4915241.html