D · Normal mode
D
Example
Normal 0 / 1Normal 1 / 1one two
three four
five six
keepCursor on line 1, column 5one
three four
five six
keepCursor on line 1, column 4Remove the characters under the cursor until the end of the line and the count-1 more lines [into register x]; synonym for "d$".
Vim registers
"Unnamed register- Characterwise · Uses Yank register 0
saved -Small delete register- Characterwise
Empty
Command applied
Vim registers
"Unnamed register Changed- Characterwise · Uses Small delete register
two -Small delete register Changed- Characterwise
two
Before & after
one two
three four
five six
keepCursor on line 1, column 5Vim registers
"Unnamed register- Characterwise · Uses Yank register 0
saved -Small delete register- Characterwise
Empty
one
three four
five six
keepCursor on line 1, column 4Vim registers
"Unnamed register Changed- Characterwise · Uses Small delete register
two -Small delete register Changed- Characterwise
two
Start in Normal mode.
Details & Vim help
Example replayed in Vim
Remove the characters under the cursor until the end of the line and the count-1 more lines [into register x]; synonym for "d$".
Remove the characters under the cursor until the end of the line and the count-1 more lines [into register x]; synonym for "d$". Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.