Vim plugin for pastebin

I was looking for a pastebin plugin for vim. I’ve  found one[1], but it was not  working, then I fixed it. The plugin is here[2]. And if is useful to you there is a git repo[3] too.

How to use:

Put it into ~/.vim/plugin to autoload the plugin every time you open VIM. You can also source it manually:

:source /path/to/pastebin.vim

You can set your favorite pastebin site and your name editing the pastebin.vim

From [1]: “To use the script is very simple. Just visually block (Shift-v) the lines of code you want to send to the Pastebin and enter the command :PasteCode. The blocked text will be sent to the Pastebin and the new URL will be shown on the Vim statusline.”

[1] http://djcraven5.blogspot.com/2006/10/vimpastebin-post-to-pastebin-from.html
[2] http://www.las.ic.unicamp.br/~gustavo/pub/vim/vim-pastebin/plugin/pastebin.vim
[3] http://github.com/pao/vim-pastebin/tree/master

5 thoughts on “Vim plugin for pastebin

  1. Pingback: Gustavo F. Padovan (padovan) 's status on Thursday, 16-Jul-09 04:00:36 UTC - Identi.ca

  2. Didn’t work. I found your comment on the blog where the original was posted (that one wasn’t working).
    To usando vim 7.2, Debian Squeeze, python 2.6.6
    Depois ele me da o url de pastebin.com, mas sem extensão, e parece que nada foi enviado, ou nada chegou no pastebin.

    A única coisa que mudei foi o username.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>