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
Pingback: Gustavo F. Padovan (padovan) 's status on Thursday, 16-Jul-09 04:00:36 UTC - Identi.ca
After your script runs it just says ‘Pasted at http://pastebin.com‘
It doesn’t give the actual link to the pastebin….
Yes, I’ve noted that some days ago. I think pastebin changed some part of their API.
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.
Awesome items you made here.