Linux_vim配置

写一下关于Linux环境下vim比较舒适的配置

```
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 { {<CR>}<ESC>kA
syntax on
map <F5> :call CompileRunGcc()<CR>
func! CompileRunGcc()
exec "w"
exec "!g++ % -Wall -Wextra -lm -o %<"
exec "!./%<"
endfunc

```

posted @ 2021-05-13 16:42  LawrenceSivan  阅读(92)  评论(0编辑  收藏  举报