Using yy to yank a line in Vim is a perfectly acceptable way of doing it. You can then move to the line you want and press p to paste. But you need to move your cursor around the file to do so. Sometimes it's easier to move less and by using these commands, you don't need to move anywhere.