sponsor Vim development Vim logo Vim Book Ad

codepad : Post the contents of your current buffer to the pastebin service at codepad.org

 script karma  Rating 532/243, Downloaded by 6893  Comments, bugs, improvements  Vim wiki

created by
Nicolas Weber
 
script type
utility
 
description
The plugin adds two new commands:

:CPPaste
    to send the current buffer to http://codepad.org, open your pasted code
    in your webbrowser, and copy the URL of the pasted snippet to the
    clipboard.


:CPRun
    to send the current buffer to http://codepad.org, execute it on their server,
    and open both the pasted source and the program output in your browser.
    The URL of the pasted snippets is copied to the clipboard as well.


The correct filetype is automatically detected through the 'filetype' option.
 
install details
Copy the script to ~/.vim/plugin/ (OS X, other Unices) or to $HOME/vimfiles/plugin (Windows). This requires +python support in vim.
 

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
codepad.vim 1.4 2010-07-30 7.0 Nicolas Weber Fix uploading of ocaml files. Patch by Johannes Hoff.
codepad.vim 1.3 2008-08-05 7.0 Nicolas Weber Also copy URL of pasted code to clipboard.
codepad.vim 1.2 2008-07-20 7.0 Nicolas Weber Nicer error message if +python is not available (error message only shown if plugin is used, not when it's loaded).
codepad.vim 1.1 2008-07-14 7.0 Nicolas Weber Make script work with input buffers that contain more than one line.
codepad.vim 1.0 2008-07-14 7.0 Nicolas Weber Initial upload
ip used for rating: 3.22.249.158

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