vim tab设置为4个空格

在/etc/vimrc中添加以下代码后

set ts=4
set expandtab
set autoindent
原文地址:https://www.cnblogs.com/jeffcsr/p/14853568.html