每天默写一遍。。。。
set ts=4 sw=4 nu ar ai cindent ru nocp go=
set bs=2 foldlevel=100 fdm=syntax
syntax enable
map<F9> :call Compile()<cr>
map<F10> :call Run()<cr>
map<F5> :call Compile()<cr> :call Run()<cr>
map<F12> :call Compile()<cr> :call Debug()<cr>
func! Compile()
w
!g++ % -o %< -g - lm -Wall
endf
func! Run()
if &filetype == 'cpp'
!./%<
elseif &filetype == 'python'
!python %
elseif &filetype == 'sh'
!bash %
else
!./%
endif
endf
func! Debug()
!gdb %<
endf

5912

被折叠的 条评论
为什么被折叠?



