vipe
vipe
is a tool from moreutils that allows you insert an editor into a unix pipe.
vipe
will create a temporary file with anything passed from standard input (empty if invoked directly) and open $EDITOR
on that file.
Anything that saved in that file when the editor closes is piped to standard output.