I am preparing for the Egyptian Olympiad in Informatics and I prefer vim to be my code editor, but my problem is my vimrc
, I think it is a bit long to type at the beginning of an onsite competition, but really is it? Here it is.
set nocp
syntax on
colo torte
set rnu nu nowrap
set hi=1000
set cb=unnamed
set si
set ts=4
set sts=4
set sw=4
set sr
set is hls
nnoremap <CR> :noh<CR><CR>
inoremap {<CR> {<CR>}<C-o>O
map <F7> :w<cr>:!g++ -Wall -Wextra -Werror % -o %<<CR>
map <F8> :w<cr>:!g++ -Wall -Wextra -Werror % -o %< && %<<CR>
map <F9> :w<cr>:!g++ % -o %< && %<<CR>
I really don't mind forgetting to write any one of the above lines (except the last four), it won't be a very big deal, but when I look at each line, they all look well worth the time needed to write them.
Should I memorize my vimrc
as it is, or are there any changes you think I should do?