vimtricks.wiki Concise Vim tricks, one at a time.

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.

Next

How do I visually select a double-quoted string including the quotes themselves?