In Any editor, Cut,Copy and paste are basic operations to copy the lines of a code.
There are multiple ways to do Cut,Copy and Paste in VIM editor
dd on the cursor line
yy on the current cursor line
p to the cursor where you want to paste. This paste the copied or deleted line
after the cursor.
P to paste the line
before the cursor