Skip to content

Instantly share code, notes, and snippets.

@vrs
Created November 26, 2014 12:28
Show Gist options
  • Save vrs/f548bf330846ff2f51f6 to your computer and use it in GitHub Desktop.
Save vrs/f548bf330846ff2f51f6 to your computer and use it in GitHub Desktop.
#!/bin/sh
temp=$(mktemp)
echo "### clipboard ###" > "$temp"
xclip -o >> "$temp"
env emulator=urxvt uvim -b -c 'set noeol' "$temp" +
sed 1d "$temp" | xclip -i
rm "$temp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment