Tip15: Paste from a Register Without Leaving Insert Mode

January 12, 2021 ยท View on GitHub

tip15

yt,

yank the words Practical Vim into the yank register

<C-r>0

<C-r>{register}: paste the text that we just yanked at the current cursor position; <C-r><C-p>{register}: insert text literally and fix any unintended indentation.

Tip14 Tip16