set nu
set mouse=a
set tabstop=4
set cindent
set showmatch
set autoindent
set smartindent
set softtabstop=4
set shiftwidth=4
set expandtab
set nocompatible
set backspace=2
set matchtime=5
inoremap ' ''<ESC>i
inoremap " ""<ESC>i
inoremap ( ()<ESC>i
inoremap [ []<ESC>i
inoremap { {<CR>}<ESC>kA
syntax on
map <F5> :call CompileRunGcc()<CR>
func! CompileRunGcc()
exec "w"
exec "!g++ % -Wall -Wextra -lm -o %<"
exec "!time ./%<"
endfunc
vim配置
文章信息与版本
文章信息
- 发布
- 2021年5月13日
- 收录
- 2026年6月14日
- 更新
- 2026年11月15日
- 篇幅
- 约 1 分钟