考试专用精简版本:
set nu
set tabstop=4
set shiftwidth=4
set smartindent
inoremap ( ()<ESC>i
inoremap [ []<ESC>i
inoremap ‘ ’‘<ESC>i
inoremap " ""<ESC>i
inoremap {<CR> {<CR>}<ESC>O
一般版:
set nu
set tabstop=4
set shiftwidth=4
set softtabstop=4
set autochdir
set smartindent
set autoindent
set mouse=a
set cursorline
color torte
inoremap ( ()<ESC>i
inoremap [ []<ESC>i
inoremap ' ''<ESC>i
inoremap " ""<ESC>i
inoremap {<CR> {<CR>}<ESC>O
map <F6> :call Run()<CR>
func! Run()
exec "w"
exec "!g++ \"%\" -o \"%<\" -O2 -Wall -std=c++11 -DRainAir"
exec "!time ./\"%<\""
endfunc