Vim Recall繁體中文

Decrease indentation while typing

Ctrl-d

Example

Insert 0 / 1
    red
Insertion point on line 1, column 5

Remove one shiftwidth of indentation.

Before & after
Before
    red
Insertion point on line 1, column 5
After
  red
Insertion point on line 1, column 3

Start 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.