Decrease indentation while typing
Ctrl-d
Example
Insert 0 / 1Insert 1 / 1 redInsertion point on line 1, column 5 redInsertion point on line 1, column 3Remove one shiftwidth of indentation.
Removed two spaces of indentation.
Before & after
redInsertion point on line 1, column 5 redInsertion point on line 1, column 3Start in Insert mode. expandtab is on and shiftwidth=2, so indentation decreases by two spaces.
Details & Vim help
Example replayed in Vim
Remove one shiftwidth of indentation.
In Insert mode, Ctrl-d decreases indentation while keeping you in Insert mode. Special forms 0Ctrl-d and ^Ctrl-d can remove all indentation.