How do I yank a visual selection to a specific named register?
"ayv
Using named registers with visual mode lets you store multiple independent snippets simultaneously.
"ayv
Using named registers with visual mode lets you store multiple independent snippets simultaneously.
"+q{keys}q
You can record macros into any register, including the system clipboard (+).
:let @+ = expand('%:p')
Sometimes you need to share or use the full path of the file you're editing — for a terminal command, a config file, or a chat message.
:help registers
Vim has 10 types of registers, each serving a specific purpose.
:set clipboard=unnamedplus
Setting clipboard=unnamedplus makes Vim's default yank and paste use the system clipboard.