Skip to main content

inserting_text_from_files_or_commands

We can insert text from files by doing:

:r filename.txt

this can be useful also for templates.

We can also print the output of a command into our current buffer with:

:r! command

Another way to print the output from a command is:

:r !command -flag1 --option1