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 $VISUAL or $EDITOR.
vim
$VISUAL
$EDITOR
Ryan King <rking@panoptic.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.
See http://www.perl.com/perl/misc/Artistic.html
To install Clipboard, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Clipboard
CPAN shell
perl -MCPAN -e shell install Clipboard
For more information on module installation, please visit the detailed CPAN module installation guide.