The Put Command
After you have deleted,
changed, or
yanked text from the
Work Buffer
you can place it elsewhere in your file by using the Put command. The
Put command uses the [p] and [P] operators. The [p] operator places
characters and words from the buffer after the current character, and
places lines of text in the buffer after the current line. The [P]
operator places characters and words before the current character, and
lines of text before the current line. Here are some examples:
- p
- Will put the contents of the General Purpose buffer after the current character or line (depending upon whether the buffer contains a character, word or line).
- "gp
- Will put the contents of the named buffer g after the cursor
- "aP
- Will put the contents of the named buffer a before the cursor
Click here to go to the top of
the chapter.