考试专用精简版本:

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
Last modification:August 15th, 2020 at 10:12 pm
如果觉得我的文章对你有用,请随意赞赏