Skip to content

Instantly share code, notes, and snippets.

@metowolf
Last active August 14, 2018 15:34
Show Gist options
  • Save metowolf/d754c0e7561a9b878b9cd872e658387f to your computer and use it in GitHub Desktop.
Save metowolf/d754c0e7561a9b878b9cd872e658387f to your computer and use it in GitHub Desktop.
vimrc for ACM-ICPC with C++
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