Press Esc
to switch to command mode and then type (then press Enter
):
:set smartindent
:
- lets vim know we're going to input commandsset
- change specified option valuesmartindent
- will indent new lines automatically
group: indent