vim极简配置

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

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

update 8.3 添加程序运行时间(Shift t)和空间(Shift s)

set nu
set cindent
set cursorline
set sw=4
set tabstop=4
set mouse=a
set autoindent
set t_Co=256
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 %< && ./%<"
endf
map T :call Time()<CR>
func Time()
	exec "w"
	exec "!g++ % -o %< && time ./%< <in"
endf
map S :call Size()<CR>
func Size()
	exec "w"
	exec "!g++ % -o %< && size ./%<"
endf
map C :call Print()<CR>
func Print()
	exec "w"
	exec "!cat %"
endf


原文地址:https://www.cnblogs.com/soda-ma/p/13386629.html