How to insert the output of a command in VI

To insert the output of a command (e.g. ‘ls’) below the cursor, type:

:r !ls

or

:read !ls

Tags: , , ,

Add a Comment