How to insert the contents of a file in VI

To insert the contents of a file called /tmp/myfile.txt below the cursor, type:

:r /tmp/myfile.txt

or

:read /tmp/myfile.txt

Tags: , , ,

Add a Comment