vimtricks.wiki Concise Vim tricks, one at a time.

How do you yank the same text to multiple registers?

Answer

"ayy"byy

Explanation

Yank the line twice into different registers. "ayy copies to register a, "byy copies to register b. Both contain the same line.

Next

How do you yank a single word into a named register?