set nu set tabstop=4 set shiftwidth=4 set softtabstop=4 set autochdir set mouse=a set autoindent set smartindent set cindent
set cursorline inoremap ( ()<ESC>i inoremap [ []<ESC>i inoremap " ""<ESC>i inoremap ' ''<ESC>i inoremap { {<CR>}<ESC>kA<CR> map <F5> <ESC> :w <CR> :!g++ -g % -o %< && ./%< <CR>
UPD 20190830:支持C++11编译
colorscheme evening hi Normal ctermbg=none set nu set tabstop=4 set shiftwidth=4 set softtabstop=4 set autochdir set mouse=a set autoindent set smartindent set cindent set cursorline inoremap ( ()<ESC>i inoremap [ []<ESC>i inoremap " ""<ESC>i inoremap ' ''<ESC>i inoremap { {<CR>}<ESC>kA<CR> map <F5> <ESC> :w <CR> :!g++ -std=c++11 -g % -o %< && ./%< <CR>
Qt Creator开启C++11:
pro文件中添加:
QMAKE_CXXFLAGS += -std=c++11 or CONFIG += c++11