Y
The
Command
The Y command in Vim
Command
yank line
Yank the current line (same as
yy).Examples
Y"aY(yank line to register a)
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related commands