Copying and Moving Text
Use the following subcommands in command mode. An incomplete subcommand can be canceled by
pressing the Esc key. If you need information about the format of vi subcommands, see General
Subcommand Syntax.
p
- Puts back text from the undo buffer after the cursor.
P
- Puts back text from the undo buffer before the cursor.
"xp
- Puts back text from the x buffer.
"xd
- Deletes text into the x buffer.
y
- Places the object that follows (for example, w for word) into the undo buffer.
"xy
- Places the object that follows into the x buffer, where x is any letter.
Y
- Places the line in the undo buffer.