Vim Recall繁體中文

Remove this line's indent; with autoindent or smartindent, restore it on the next line

^ Ctrl-d

Example

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

Remove this line's indent; with autoindent or smartindent, restore it on the next line.

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

Start in Insert mode. Type ^ then Ctrl-d to remove indentation from this line. Autoindent and smartindent are off here, so this example demonstrates removal only; restoring saved indentation on the next line requires one of those options.

Details & Vim help

Example replayed in Vim

Remove this line's indent; with autoindent or smartindent, restore it on the next line. Use in Insert mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative. This example has automatic indentation disabled and demonstrates removal only.