Vim can easily execute a shell command with the
!. But you can just as easily insert the output of that command into your document.
:.! like so, where command is whatever you want to run in your shell:
For example, try running the following from normal mode:
The line where your cursor was will be replaced with the output of the unix
cal command like so:
If you’d rather insert the output into a new line below your cursor, Vim can do that, too: