Recommended by Fabien Loudet, Senior SysOps at Rosetta Stone
The vipe program from the moreutils package allows to "insert a text editor into a pipe". That is, run your EDITOR in the middle of a unix pipeline and edit the data that is piped.
command1 | vipe | command2
