Yank (copy) a line

Vim keyboard shortcut

Y then Y

Press Y then Y to yank (copy) a line.

Practice this shortcut All Vim shortcuts