Delete back to the first nonblank
d^
Example
Normal 0 / 2Operator pending 1 / 2Normal 2 / 2 one two threeCursor on line 1, column 11 one two threeCursor on line 1, column 11 threeCursor on line 1, column 3Delete the range between the cursor and the first nonblank on the same line.
Vim registers
"Unnamed register- Characterwise · Uses Yank register 0
saved -Small delete register- Characterwise
Empty
Waiting for motion or text object
Vim registers
"Unnamed register- Characterwise · Uses Yank register 0
saved -Small delete register- Characterwise
Empty
Delete the range between the cursor and the first nonblank on the same line
Vim registers
"Unnamed register Changed- Characterwise · Uses Small delete register
one·two· -Small delete register Changed- Characterwise
one·two·
Before & after
one two threeCursor on line 1, column 11Vim registers
"Unnamed register- Characterwise · Uses Yank register 0
saved -Small delete register- Characterwise
Empty
threeCursor on line 1, column 3Vim registers
"Unnamed register Changed- Characterwise · Uses Small delete register
one·two· -Small delete register Changed- Characterwise
one·two·
Start in Normal mode, at line 1, column 11 (one-based). The backward ^ motion stops at the first nonblank. Start on the t of three. Press d^.
Details & Vim help
Example replayed in Vim
Delete the range between the cursor and the first nonblank on the same line.
On a line with nonblank text, the deletion includes the left endpoint and stops before the right endpoint. Starting after the first nonblank keeps the indentation. Starting inside the indentation deletes toward the first nonblank. At the first nonblank the deletion range is empty.