hide random home http://www.fmi.uni-passau.de/archive/doc/unix/unixhelp/Unixhelp/vi_six.1.html (Einblicke ins Internet, 10/1995)

Repeat parts of the text

Repeat parts of the text

You can re-use a piece of text in another part of the file by yanking it into a temporary buffer and then putting the contents of this buffer back into the file.

The command y yanks the text into the temporary buffer.

Combined with other commands that are used to move around text objects, the yank command can be used to pull any part of a file into the the buffer.

The command p pastes the contents of the temporary buffer back into the file immediately after the cursor.