答:  tab 空格数设置为4,加入以下五行到~/.vimrc即可

set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4

执行以下命令即可写入:

  echo -e 'set smartindent\n~/.vimrc

 

相关文章: