"dyy Yank current line into buffer d.
"a7yy Yank next seven lines into buffer a.
After loading the named buffers and moving to the new position, use
p or P to put the text back:
"dP Put the contents of buffer d before cursor.
"ap Put the contents of buffer a after cursor.
There is no way to put part of a buffer into the text—it is all or
nothing.
In the next chapter, you'll learn to edit multiple files. Once you know how to
travel between files without leaving vi, you can use named
buffers to selectively transfer text between files.
You can also delete text into named buffers using much the same
procedure:
"a5dd Delete five lines into buffer a.