10 years ago
Creates a paste of the whole buffer (default), visual selection or arbitrary range on sprunge.us. The URL is placed on the system clipboard for your convenience.
" Mac OS X command! -range=% SP silent execute <line1> . "," . <line2> . "w !curl -F 'sprunge=<-' http://sprunge.us | tr -d '\\n' | pbcopy" " Linux (requires xclip) command! -range=% SP silent execute <line1> . "," . <line2> . "w !curl -F 'sprunge=<-' http://sprunge.us | tr -d '\\n' | xclip -i -selection clipboard"