Paste register 0 after deleting
"0p
Example
Normal mode. Yanked blue with yiw, then deleted other text. Cursor on the space after red.
red Cursor on line 1, column 4- "0p Paste register 0 · red blue
red blueCursor on line 1, column 8Details & Vim help
Paste from register 0 after deleting.
Paste your copied text even after another deletion changed the unnamed register.
Register 0 is refreshed by a yank without an explicit register. Linewise yanks put whole lines; p places characterwise text after the cursor.
Assumes register 0 contains the characterwise text “blue” and the cursor is on the space after red.
Try it in Vim
- Yank a word, such as blue, using yiw.
- Delete other text normally.
- Move to the insertion point and type "0p.