> I often find myself in need of copying (yanking) non-consecutive
> multiple lines so that I can paste them somewhere else in a
> consecutive way. Several lines are scattered around the file and would
> like to collect them kind of.
>
> At the moment I go to to first line, yank it, go to the destination
> position, paste it, look for the second line, yank it, go to the
> destination position, paste it after the already pasted line, etc.
>
> Is it possible to yank a line (or character or block of text) and then
> yank something else in a way that the second yanking does not
> overwrite the previously yanked stuff but adds to it? So that a
> subsequent paste would paste both?
in addition to Tony's suggestion you can use the :global command if
those lines match a common pattern:
:let @a = ''
:g/pattern/y A
will first clear the content of register "a. The :global command then
appends every line that matches the pattern to register "a.
Thanks Jurgen, that is even better, exactly the kind of thing I had in mind.