Vim Recall繁體中文

Delete the previous word

Ctrl-w

Example

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

Delete the word before the insertion point.

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

Start in Insert mode. Insertion point starts after blue; both words were just typed. Press Ctrl-w.

Details & Vim help

Example replayed in Vim

Delete the word before the insertion point.

In Insert mode, Ctrl-w removes the preceding word. backspace controls whether deletion can cross an insertion start, indentation, or line boundary.