Last active
August 14, 2018 15:34
-
-
Save metowolf/d754c0e7561a9b878b9cd872e658387f to your computer and use it in GitHub Desktop.
vimrc for ACM-ICPC with C++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cin nu ts=4 sw=4 sts=4 mouse=a | |
syn on | |
function! Compile() | |
:!g++ -std=gnu++11 -g % -o %<.exe | |
endfunction | |
function! Run() | |
:!time ./%<.exe | |
endfunction | |
map <F4> :call Compile()<cr> | |
map <F5> :call Run()<cr> | |
map <C-A> ggVG"+y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment