Last active
January 27, 2016 12:39
-
-
Save Rawa/08ac576e2d59fa913d7f to your computer and use it in GitHub Desktop.
Sweet vim function to upload selected lines to hastebin and copy url to clipboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function HasteUpload() range | |
echo system('echo '.shellescape(join(getline(a:firstline, a:lastline), "\n")).'| haste | xsel -ib') | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment