在一个字符长度的单词或超过三个长度的字符单词之后,TAB 正好移动 4 个空格。我的 .vimrc 配置文件如下所示。
syntax on
" number of spaces moved along by pressing >>, << or ==
set shiftwidth=4
" number of spaces moved along by pressing the <TAB> or <BS> key
set softtabstop=4
set expandtab
tabstop 配置值设置为默认值 8。我期待 TAB 无论如何都会向前移动 4 个空格。