Moving lines in vim

Question:
Open the /home/bob/testfile file in vi and move the line present on line no: 1049 to line no: 5

Answer:
Open file at line 1049:

vim +1049 /home/bob/testfile
Move lines:
dd
:5<Enter>
<Shift>+p
:wq