Vim 9 · Macros and settings

Use four spaces for indentation

Insert spaces when you press Tab.

:set expandtab tabstop=4 shiftwidth=4

Official Vim 9 documentation

More macros and settings commands

All macros and settings commands · Vim 9 cheatsheet

Was this page helpful?