If I'm in Vim and want to get some output from the command-line and tack it onto my current file, I can run this:
:! echo "foo" >> %
That will append "foo" to my current file, and I'll have to reload.
Is there a more elegant way to do this - have that output go into a buffer that I can paste, for example?