yy
yy will yank (copy) the entire line, regardless of the position of your cursor.
If you wish to paste the yanked line, press p or P.
You can give this command a count. For example if you want to yank (copy) the next three lines
use 3yy
yy will yank (copy) the entire line, regardless of the position of your cursor.
If you wish to paste the yanked line, press p or P.
You can give this command a count. For example if you want to yank (copy) the next three lines
use 3yy