vim – yank/xopy in different register to paste

2014-01-16 1 min read Vim Tips

Very quick update, to use registers, you can select and then yank in a register to paste using the same register. This could be a convinient way to copy multiple selections and then paste which ever selection you want. Here is the simple way to do it:

visuallly select with v/V

then “qy to yank (here we are yanking into register q, so in the command you can use any of a-z to use as register)

then “qp to paste..

To, view all the registers, you can use the command “registers”.

 

Enhanced by Zemanta
comments powered by Disqus