[Next] [Up] [Previous] [Contents]
Next: Running shell commands Up: Using the vi Previous: Editing another file

Including other files

If you use the :r command, you can include the contents of another file in the current file. For example, the command

:r foo.txt
would insert the contents of the file foo.txt in the text at the current cursor location.


mdw@sunsite.unc.edu