Vim tips: Working with external commands
Some really neat Vim tips like this one, which runs
ls on a directory and outputs everything right into your current buffer:
:r ! ls -1 /home/user/directory
:r you can pretty much insert everything that your command line spits out into Vim, and obviously you can also pipe the entire document, ranges of text to a command line utility.