Last Updated: February 25, 2016
·
1.053K
· errm

Vim: Insert the output of a command

In normal mode insert the output of a command as a new line like this:

!! cat ~/.ssh/id_dsa.pub

In insert mode you can insert the output at current cursor position with something like this:

Ctrl+R =system('date')