Re: yanking all matches
- On Thursday 30 May 2002 11:38 pm, Ben Leighton wrote:
> using:let @a=''
> in a file
> how can I yank all instances of foobar to a buffer?
> I've tried :/foobar/y
> but that only yanks the first match (?).
yanks all lines with foobar into register a for putting with "ap