Day -1
复习了一下 vim 配置。
set cursorline
set mouse=a
set tabstop=4
set shiftwidth=4
" set autoindent
set autoread
set autowrite
set number
set ruler
set hlsearch
set incsearch
function! Open()
exec "vsp %<.out"
exec "sp %<.ans"
exec "sp %<.in"
endfunction
map <F9> <Esc>:w<CR>:!g++ % -o %< -O2 -g -Wall -Wextra -std=c++11 -fsanitize=address -fsanitize=undefined && ./%<<CR>
imap <F9> <Esc><F9>
map <F8> <Esc>:w<CR>:!gedit %<CR>
imap <F8> <Esc><F8>
map <F5> <Esc>:!g++ % -o %< -g -Wall -Wextra -std=c++11 && gdb %<<CR>
imap <F5> <Esc><F5>
map <F2> <Esc>:call Open()<CR>
imap <F2> <Esc><F2>