需要在.vimrc 的set tabstop=4的这一行上面增加 set expandtab 否则会报unexpected unident 转载于:https://www.cnblogs.com/fang9159/p/3669072.html