vim考场配置

syntax on
set number
set mouse=a
set showmatch
set autoindent
set smartindent
set tabstop=2
set shiftwidth=2
set autoread
map <F5> : call Compile() <CR>
func! Compile()
  exec 'w'
  exec '!g++ % -lm -Wall -std=c++11 -o %<'
  exec '!time ./%<'
endfunc
posted @ 2019-11-15 09:33  newbielyx  阅读(332)  评论(0编辑  收藏  举报