sponsor Vim development Vim logo Vim Book Ad

vim-sprunge : A pastebin vim plugin for http://sprunge.us/

 script karma  Rating 0/0, Downloaded by 431    Comments, bugs, improvements  Vim wiki

created by
chili cuil
 
script type
utility
 
description
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>

Cool!?, eh?, now, wouldn't it be even more cool if you could paste directly from vim?

2. Usage

    :Sprunge

After pressing <Enter>, you'll get a url with the content of your file. You
can also invoke this in visual mode to sprunge only the visual selection.

Alternatively you may also use the '<Leader>s' mapping, you can override this
mapping by setting 'g:sprunge_map' in your .vimrc
 
install details
The recommended way to get vim-sprunge is by combining github and vundle:

     https://github.com/chilicuil/vim-sprunge

Vundle (recommended):
=================

Add to your $HOME/.vimrc file:

    Bundle 'chilicuil/vim-sprunge'

Run inside of vim:

    :BundleInstall

Pathogen:
=======

    $ git clone https://github.com/chilicuil/vim-sprunge.git ~/.vim/bundle/sprunge

Manual:
=====

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:

    :helpt ~/.vim/doc/

Vote the plugin if you like it =)
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-sprunge.zip 0.0.4 2014-01-22 7.0 chili cuil * Refactored the code
* Added customizable mappings
* Added support to open sprunge link in browser
* Improved the help document & README

vim-sprunge.zip 0.0.3 2013-12-21 7.0 chili cuil Add clipboard support
vim-sprunge.zip 0.0.2 2013-07-29 7.0 chili cuil Sprunge now upload current buffer instead of current file, most people will prefer this
vim-sprunge.zip 0.0.1 2013-07-18 7.0 chili cuil Initial upload
ip used for rating: 54.167.138.53

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo