Insert the result of a command to the current file:
# insert result of ls to current file
:r !ls
where
:r --> :r file Read contents of a file to the workspace
! --> ! calls an external process in vim. This can be very useful.
in this case we call ls and put the result to the current workspace