vim極簡配置
阿新 • • 發佈:2020-08-03
最近轉vim了,感覺gedit的配色用的不想再用了,,,,(而且vim好看,小聲bb)
比較簡單,比較適用於我這樣的小渣渣
update 8.3 新增程式執行時間(Shift t)和空間(Shift s)
set nu set cindent set cursorline set sw=4 set tabstop=4 set mouse=a set autoindent set t_Co=256 color ron inoremap " ""<ESC>i inoremap ' ''<ESC>i inoremap [ []<ESC>i inoremap { {}<ESC>i inoremap ( ()<ESC>i inoremap {<CR> {<CR>}<ESC>O map <F5> :call Run()<CR> func Run() exec "w" exec "!g++ % -o %< && ./%<" endf map T :call Time()<CR> func Time() exec "w" exec "!g++ % -o %< && time ./%< <in" endf map S :call Size()<CR> func Size() exec "w" exec "!g++ % -o %< && size ./%<" endf map C :call Print()<CR> func Print() exec "w" exec "!cat %" endf