hi TabLineFill ctermbg=grey
set nu
set ruler
set mouse=a
set ts=4
set noswapfile
set autoindent
set hls
map <F4> <ESC>:w <CR> <ESC>:! g++ % -o %< -O2 && time ./%<
map <F5> <ESC>:w <CR> <ESC>:! g++ % -o %< -Wall && time ./%< < %<.in <CR>
map <F6> <ESC>:w <CR> <ESC>:! g++ % -o %< -g && gdb %< <CR>
map <F7> <ESC>:w <CR> <ESC>:! g++ % -o %< -Wall -fsanitize=undefined,address && time ./%< < %<.in
map <F8> <ESC>:w <CR> <ESC>:! g++ % -o a -O2 && ./%< < %<.in <CR>
map <C-i> <ESC>:tabe %<.in<CR>
map <C-o> <ESC>:tabe
map <C-p> <ESC>:vsp
map <C-c> <ESC>:w <CR> <ESC>:! gedit %<CR>
map <C-a> <ESC>:tabp<CR>
map <C-d> <ESC>:tabn<CR>
map <C-w> <ESC>:q<CR>
inoremap ( ()<esc>i
inoremap [ []<esc>i
inoremap { {}<esc>i
inoremap " ""<esc>i
inoremap ' ''<esc>i
标签:map,set,++,配置,vim,&&,time,inoremap
From: https://www.cnblogs.com/Chencgy/p/16888649.html