Linux 系统中,tab 默认是 8 个空格,修改为 4 个空格。
tab
8
4
在配置文件(vim /etc/vim/vimrc)中添加 set ts=4 即可。
vim /etc/vim/vimrc
set ts=4