@hackage pipeclip0.1.0.1

Open your editor, pipe the output to the system clipboard

This opens up your $EDITOR or $VISUAL using the editor-open library. It then takes the edited text and sends it to the X11 clipboard.

As such, this will only work if you have X11. Translated, this is limited to Linux and BSD.