跳到正文

个人记录

vim配置

LawrenceSivan约 1 分钟
原文
文章信息与版本

文章信息

发布
2021年5月13日
收录
2026年6月14日
更新
2026年11月15日
篇幅
约 1 分钟

版本

  1. v1当前
代码
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
原文