Vim Recall繁體中文

Delete entered text on this line

Ctrl-u

Example

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

Erase newly entered characters before the insertion point.

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

Start in Insert mode. Insertion point starts after blue; the entire line was just typed in this insertion. Press Ctrl-u. The empty result is represented by an empty line.

Details & Vim help

Example replayed in Vim

Erase newly entered characters before the insertion point.

Ctrl-u removes entered characters before the cursor on the current line. If there are no newly entered characters and backspace permits it, it can also remove existing text before the cursor.