Vim Recall繁體中文

Increase indentation while typing

Ctrl-t

Example

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

Add one shiftwidth of indentation to the current line.

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

Start in Insert mode. expandtab is on and shiftwidth=2, so indentation increases by two spaces.

Details & Vim help

Example replayed in Vim

Add one shiftwidth of indentation to the current line.

In Insert mode, Ctrl-t increases the line indentation while keeping you in Insert mode. The amount follows shiftwidth and related settings.