Vim Recall繁體中文

D · Normal mode

D

Example

Normal 0 / 1
one two
three four
five six
keep
Cursor on line 1, column 5

Remove 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 0saved
- Small delete register
CharacterwiseEmpty
· space ⇥ tab ↵ line break
Before & after
Before
one two
three four
five six
keep
Cursor on line 1, column 5

Vim registers

" Unnamed register
Characterwise · Uses Yank register 0saved
- Small delete register
CharacterwiseEmpty
· space ⇥ tab ↵ line break
After
one 
three four
five six
keep
Cursor on line 1, column 4

Vim registers

" Unnamed register Changed
Characterwise · Uses Small delete registertwo
- Small delete register Changed
Characterwisetwo
· space ⇥ tab ↵ line break

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.