vim极简配置

最近转vim了,感觉gedit的配色用的不想再用了,,,,(而且vim好看,小声bb

比较简单,比较适用于我这样的小渣渣

set nu
set cindent
set cursorline
set sw=4
set tabstop=4
set mouse=a
set autoindent
set t_Co=128
set ls=2
set ai
color ron
inoremap " ""<ESC>i
inoremap ' ''<ESC>i
inoremap [ []<ESC>i
inoremap { {}<ESC>i
inoremap ( ()<ESC>i
inoremap {<CR> {<CR>}<ESC>O
map <F5> :call Run()<CR>
func Run()
	exec "w"
	exec "!g++ % -o %< && time ./%<"
endf
map <F9> :call Print()<CR>
func Print()
	exec "w"
	exec "!cat %"
endf
map <F6> :call S()<CR>
func S()
	exec "w"
	exec "!g++ -o %< % && size %< | awk 'NR==2{print $3}' | numfmt --to=iec"
endf
set noswapfile
set nobackup

posted @ 2020-08-03 21:38  sodak  阅读(209)  评论(2编辑  收藏  举报