Question: how to copy and paste multiple lines in vi editor?
Answer: Put your cursor on the top line. Use shift+v to enter visual mode. Press 2j or press j two times to go down two lines. (Or use v2j in one swift ninja-move!) Press y to yank or x to cut. Move your cursor and use p to paste after the cursor or P to paste before the cursor.