Originally Published: Saturday, 13 January 2001 Author: Dimitris Economou [trackman@linux.com]
Published to: tuneup_tips/Tips Page: 1/1 - [Printable]

Inserting Files in a Document Using vi

When editing a document with vi, the contents of another text file can be retrieved and inserted into the file at the cursor's position. This is done by calling the 'r' function in the following format:
:r <file>
For example, while editing a document, after pressing escape to ensure that vi is accepting commands, the contents of the file 'tuneup' will be...