Linux vim配置

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

 

posted @ 2019-07-02 10:21  Rorschach_XR  阅读(947)  评论(0编辑  收藏  举报
//雪花飘落效果