Delete Commands Modifying Commands Put Back Commands
Yank commands yank a text of buffer into a (usually anonymous) register. Here the word `yank' is used in Vi's sense. Thus yank commands do not alter the content of the buffer, and useful only in combination with commands that put back the yanked text into the buffer.
Yank the region determined by the motion command motion-command.
Use the following command to yank consecutive lines of text.
Yank a line. Given n, yank n lines (
|y r||Yank current region.|
|y R||Expand current region and yank it.|