首页 > 系统服务 > 详细

vim options for icpcer

时间:2019-10-31 17:19:14      阅读:52      评论:0      收藏:0      [点我收藏+]
 1 filetype plugin indent on
 2 set completeopt=preview,menu
 3 set syntax=on
 4 set mouse=a
 5 set cindent
 6 set tabstop=4
 7 set nu
 8 set hlsearch
 9 set smarttab
10 set showmatch
11 set matchtime=0
12 set report=0
13 
14 :inoremap { {}<esc>i
15 :inoremap {<CR> {<CR>}<ESC>O
16 :inoremap } <c-r>=Close(})<CR>
17 function Close(char)
18     if getline(.)[col(.)-1] == a:char
19         return "\<Right>"
20     else
21         return a:char
22     endif
23 endfunction
24 
25 map <C-A> ggVG"+y
26 map <F5> :call Run()<CR>
27 func! Run()
28         exec "w"
29         exec "!g++ -Wall % -o %<"
30         exec "!./%<"
31 endfunc

F5 to complier and run

ctrl+a to copy all

vim options for icpcer

原文:https://www.cnblogs.com/greenpepper/p/11772191.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!