sponsor Vim development Vim logo Vim Book Ad

nopaste.vim : Nopaste interface to http://www.rafb.net/ from inside vim

 script karma  Rating 4/1, Downloaded by 658  Comments, bugs, improvements  Vim wiki

created by
Nikola Petrov
 
script type
utility
 
description
This is a simple interface to http://www.rafb.net/ which need vim's python interface as a dependency. Edit a file, then issue the command
:Paste
and it will post the whole file on rafb. The link will come in your clipboard(* and +) as default, so you can post it with Ctrl + v or middle mouse button somewhere on IRC, browsers, etc. I also have that map in my ~/.vimrc
vnoremap <leader>paste y:call Paste('<C-R>"')<cr><cr>
with which you can paste just a snippet from the file. Just select the block/text in VISUAL mode and hit <leader>paste this will copy the text to the site, note <leader> is \ as default in vim.
 
install details
Put the vim file in your ~/.vim/plugin on Unix and ~/vimfiles/plugin on Windows.
You should also set g:nickname to your nickname with something like this
let g:nickname = "nikolavp"
 

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
nopaste.vim 0.02 2008-08-05 6.0 Nikola Petrov Exit the script if we are in compitable mode or we don't have +python support. Also added some license comments, etc.
nopaste.vim 0.01 2008-08-04 7.0 Nikola Petrov Initial upload
ip used for rating: 13.58.112.1

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.
   
Vim at Github