Posts Tagged ‘insert file’

How to insert the contents of a file in VI

Friday, February 27th, 2009

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