vim的设置需要编辑~/.vimrc文件,更改已有设置或者在后面添加相应的设置。
~/.vimrc
# ts: tabstop set ts=4
# expand tab set expandtab
更多请参考vim设置。