vim考场配置

syntax on
set number
set showmatch
set autoindent
set smartindent
set tabstop=2
set shiftwidth=2
set mouse=a
map <F5> : call Compile() <CR>
func! Compile()
  exec 'w'
  exec '!g++ % -lm -Wall -o %<'
  exec '!time ./%<'
endfunc

猜你喜欢

转载自www.cnblogs.com/newbielyx/p/11864377.html