Use {register} for next delete, yank or put ({.%#:} only work with put)
"{register}
Example
Normal 0 / 2Prefix pending 1 / 2Normal 2 / 2one two
three fourCursor on line 1, column 1one two
three fourCursor on line 1, column 1one two
three fourCursor on line 1, column 1Use {register} for next delete, yank or put ({.%#:} only work with put).
Vim registers
aRegister a- Characterwise
Empty
Select a for the next yank.
Vim registers
aRegister a- Characterwise
Empty
Yank the first line into a.
Vim registers
aRegister a Changed- Linewise · ↵ marks a line break
one·two↵ "Unnamed register Changed- Linewise · ↵ marks a line break
one·two↵
Before & after
one two
three fourCursor on line 1, column 1Vim registers
aRegister a- Characterwise
Empty
one two
three fourCursor on line 1, column 1Vim registers
aRegister a Changed- Linewise · ↵ marks a line break
one·two↵ "Unnamed register Changed- Linewise · ↵ marks a line break
one·two↵
ILLUSTRATION. Choose named register a and complete the operation with yy; a is initially empty.
Details & Vim help
Use {register} for next delete, yank or put ({.%#:} only work with put). Use in Normal mode. Braced names stand for the required argument and are not typed literally. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.