vimtricks.wiki Concise Vim tricks, one at a time.

How do you insert shell command output into the current buffer?

Answer

:r !date

Explanation

Use :r !command to read the output of a shell command into the buffer below the cursor. :r !date inserts the current date.

Next

How do I visually select a double-quoted string including the quotes themselves?