How do I delete text and save it to a specific named register?
"add
How it works When you delete text in Vim with commands like dd, dw, or x, the deleted text goes into the unnamed register and the numbered registers (1-9).
25 results for "dw"
"add
How it works When you delete text in Vim with commands like dd, dw, or x, the deleted text goes into the unnamed register and the numbered registers (1-9).
"_d
The "d command deletes text using the black hole register ("), which discards the deleted content instead of storing it.
autocmd TextYankPost
The TextYankPost event fires immediately after any yank operation completes — including y, Y, dd, dw, and any other command that writes to a register.
10@a
The 10@a command replays the macro recorded in register a exactly 10 times.
"1p then u.u.u.
Vim stores your last 9 deletions (of one line or more) in the numbered registers "1 through "9.
registers #registers #editing #normal-mode #undo-redo #paste