Remove the count characters before the cursor [into register x]
X
Example
Normal 0 / 1Normal 1 / 1one two
three four
five six
keepCursor on line 1, column 5onetwo
three four
five six
keepCursor on line 1, column 4Remove the count characters before the cursor [into register x].
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
· -Small delete register Changed- Characterwise
·
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
onetwo
three four
five six
keepCursor on line 1, column 4Vim registers
"Unnamed register Changed- Characterwise · Uses Small delete register
· -Small delete register Changed- Characterwise
·
Start in Normal mode.
Details & Vim help
Example replayed in Vim
Remove the count characters before the cursor [into register x]. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.