The Yank Command
The Yank command [y] is identical to the
delete command except it does
not delete text from the
Work Buffer.
It simply makes a copy of the text in the Work Buffer and places it in
the General Purpose Buffer or one of the named buffers. The syntax of
the yank command is the same as that for the delete command except you
substitute a [y] for the [d] in all commands. Here are some examples:
- yy
- make a copy of the current line and place it in the General Purpose Buffer
- "gyy
- make a copy of the current line and place it in the named buffer g
- "a5yy
- copy the next 5 lines and place them in the named buffer a
Click here to go to the next section.
Or click here to go to the top of
the chapter.