clipedit man page
clipedit — Edit clipboard contents in one swoop.
Eliminating the "Open editor, edit stuff, copy back to the clipboard" shuffle.
If for some reason the clipboard contents changes during the edit session, you will be prompted to choose between 1) the original Clipboard contents, 2) the new Clipboard contents, and 3) the result of your edits (which is the default if you just hit "Enter").
If you don't want the script to use
"vim" to edit, set either the environment variable
Ryan King <email@example.com>
Copyright (c) 2010. Ryan King. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.