vim-sprunge : A pastebin vim plugin for http://sprunge.us/
| script karma
Downloaded by 112
Comments, bugs, improvements
script versions (upload new version)
|There are several pastebin sites avalaible on the Internet, and there exist even a plugin for Gist: https://github.com/mattn/gist-vim
So why yet another pastebin plugin?, well, tell me 1 site who allow you fetch the content sanetely?, most of them ask you to open a browser and click here and there to get the juice.
http://sprunge.us/ doesn't not!, if you're confident in a terminal, try this:
$ ls | curl -F 'sprunge=<-' http://sprunge.us
Curius for your output?, try now this:
$ curl <url-sprunge-generated>
Yep, reasonable simple!?, now, suppose you're working on a script, you want to test it in a pristine env, maybe ec2 or vagrant...
$ cat script | curl -F 'sprunge=<-' http://sprunge.us
And then from the pristine environment:
$ bash <(wget -qO- <url-sprunge-generated>)
Cool!?, eh?, now, wouldn't it be cool if you could paste directly from vim?
If by now you're in love with http://sprunge.us/, you can start using it with:
And press <Enter>, you'll get a url with the content of your file. If you find yourself typing ':Sprunge' too often you can add a shortcut:
nnoremap <F11> :Sprunge<CR>
|The best way to get vim-sprunge is trough github:
$ git clone https://github.com/chilicuil/vim-sprunge.git ~/.vim/bundle/sprunge
Vundle, in the $HOME/.vimrc file:
And run inside of vim:
Vim.org, download the zip file attached and extract the files in $HOME/.vim
mv vim-sprunge*.zip $HOME/.vim
cd $HOME/.vim && unzip vim-sprunge*.zip
Update the help tags from vim inside:
Vote the plugin if you like it =)
Click on the package to download.
ip used for rating: 184.108.40.206