I wanted to yank all matching lines of a buffer in a give register. I choose "A
:g/<match>/y A
did this trick for me.I guess
"Ap
is the command to paste A's content, I got my matching lines plus older lines as well, tried clearing A using
:let @A=''
but still able to paste using "Ap .What am I doing wrong?
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 16 2013 20:39:23)
MS-Windows 64-bit GUI version with OLE support
Included patches: 1-52