From: Andy Spencer Date: Thu, 8 Oct 2009 06:04:38 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://pileus.org/git/?p=vpaste;a=commitdiff_plain;h=3128b20c264eb36697ae967dd716f06210762a30 --- diff --git a/index.cgi b/index.cgi index a9f2465..c548220 100755 --- a/index.cgi +++ b/index.cgi @@ -140,6 +140,9 @@ cat - < <command> | vpaste [option=value,..]
 <command> | curl -F 'x=<-' $SCRIPT_URI[?option=value,..]
+
+
:map vp :exec "w !vpaste ft=".&ft<CR>
+
:vmap vp <ESC>:exec "'<,'>w !vpaste ft=".&ft<CR>

DESCRIPTION

Add ?[option[=value],..] to make your text a rainbow.

diff --git a/vpaste b/vpaste index 0e87323..a24d02c 100755 --- a/vpaste +++ b/vpaste @@ -1,9 +1,9 @@ #!/bin/bash uri="http://andy753421.ath.cx/vpaste/" if [ -f "$1" ]; then - out=$(curl -F "x=<$1" "$uri?$2") + out=$(curl -s -F "x=<$1" "$uri?$2") else - out=$(curl -F 'x=<-' "$uri?$1") + out=$(curl -s -F 'x=<-' "$uri?$1") fi echo "$out" if [ -x "`which xclip 2>/dev/null`" -a "$DISPLAY" ]; then