How do you set the tab width in Vim?
Answer
set tabstop=4 shiftwidth=4
Explanation
Set tabstop for display width of tabs and shiftwidth for indent operations. Add expandtab to convert tabs to spaces.
set tabstop=4 shiftwidth=4
Set tabstop for display width of tabs and shiftwidth for indent operations. Add expandtab to convert tabs to spaces.