Cutting and pasting multiple lines

Hey. Couldn’t find how to do this.

  1. select multiple separated lines in a document (eg. %s#sometag<return>x).
  2. d to cut those lines
  3. gh to move to the end of the document
  4. paste all the lines that were cut at 2.

But when I do that, only one of the selections is pasted. How can I do that?

Typing <a-p> (alt paste) instead of p (paste) should do the job. The key documentation (:doc keys) says that <a-p> should:

paste all after the end of each selection, and select each pasted string