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

How do you use registers to exchange two pieces of text?

Answer

"adiw then move, "aP and diw

Explanation

Delete the first word into register a with "adiw, move to the second word, paste register a before with "aP, then delete the remaining original.

Next

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