自动缩进,自动补全括号,显示行号等
vim /etc/vimrc
set nu
if has( "autocmd" )
filetype plugin indent on
autocmd FileType make set tabstop=8 shiftwidth=8 softtabstop=0 noexpandt ab
endif
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
inoremap ( ()<ESC>i
inoremap [ []<ESC>i
inoremap { {}<ESC>i
inoremap < <><ESC>i
标签:缩进,set,--,vim,行号,自动,inoremap From: https://www.cnblogs.com/yeahzxw/p/16846955.html