Took a few tries, but here's what you're looking for, based on my understanding of the problem:
jdjkPGP
Explanation:
j
- Go down one line (to line 2)
dj
- Delete the current line and the line below (lines 2 and 3)
k
- Go up one line (to line 1)
P
- Paste on line(s) above current line (pastes to lines 1 and 2, putting you on the new line 3)
G
- Go to the bottom of the buffer (line 5)
P
- Same as above (pastes to lines 5 and 6, or "after line 4")
As a side note, while I don't believe this question is off-topic for Arqade, you might try checking over at the Vi and Vim Stack Exchange for tips. Also when in Vim, :help <key or term>
is a really useful item when figuring out how to do something. Even if your search doesn't get you exactly what you want, it might get you close in the actual help documentation.