、打开vim配置文件~@vim etc/vim/vimrc二 、设置tab和自动缩进即:添加如下内容
"set tab by charly!" set tabstop=4 softtabstop=4 (注意等号两边不要打空格) set autoindent