<pre> <command> | vpaste [option=value,..]</pre>
<br>
<pre> <command> | curl -F 'x=<-' $SCRIPT_URI[?option=value,..]</pre>
+ <br>
+ <pre>:map vp :exec "w !vpaste ft=".&ft<CR></pre>
+ <pre>:vmap vp <ESC>:exec "'<,'>w !vpaste ft=".&ft<CR></pre>
<h4>DESCRIPTION</h4>
<p>Add <b>?[option[=value],..]</b> to make your text a rainbow.</p>
#!/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