Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated configuration to detail pastebin.com v2 API

- Updated configuration file to detail using paster.vim with new v2 of
  pastebin.com API.
  • Loading branch information...
commit b5880a550d18c76ee36da316c4de68103beb1d2d 1 parent 53bd1db
@weierophinney authored
Showing with 31 additions and 20 deletions.
  1. +16 −13 plugin/paster-config.vim
  2. +15 −7 plugin/paster.vim
View
29 plugin/paster-config.vim
@@ -30,12 +30,14 @@
" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"
"
-" CONTRIBUTOR EMAIL IRC /NICK
-" ---------- ----- ---------
-" Eugene Ciurana http://ciurana.eu/contact pr3d4t0r
-" Andrew Lombardi http://www.mysticcoders.com kinabalu
-" Matt Wozniski mjw@drexel.edu godlygeek
-" Will Gray graywh@gmail.com graywh
+" CONTRIBUTOR EMAIL IRC /NICK
+" ----------- ----- ---------
+" Eugene Ciurana http://ciurana.eu/contact pr3d4t0r
+" Andrew Lombardi http://www.mysticcoders.com kinabalu
+" Matt Wozniski mjw@drexel.edu godlygeek
+" Will Gray graywh@gmail.com graywh
+" Michael Jansen http://michael-jansen.biz n/a
+" Matthew Weier O'Phinney http://weierophinney.net/matthew weierophinney
"
" Special thanks to stepnem, iamjay_, jerbear, and other denizens of the
" #vim channel (irc://irc.freenode.net/#vim)
@@ -673,13 +675,14 @@ endif
" *************** Begin pastebin.com configuration ***************
-" This is a sample configuration you may use in your vimrc. Note that this
-" version will paste to the subdomain 'weierophinney.pastebin.com'; simply
-" remove the 'g:PASTER_FIXED_ARGUMENTS' setting, or replace it with your own.
-" let g:PASTER_FORMAT = '-d "paste_format=textFormat"'
-" let g:PASTER_TEXT_AREA = "paste_code"
-" let g:PASTER_URI = "http://pastebin.com/api_public.php"
-" let g:PASTER_FIXED_ARGUMENTS = '-d "paste_subdomain=weierophinney"'
+" This is a sample configuration you may use in your vimrc. Pastebin.com now
+" requires a valid API key; register with pastebin.com to obtain your API key.
+" Override the g:PASTER_FIXED_ARGUMENTS option to substitute your API key as the
+" 'api_dev_code' option.
+" let g:PASTER_FORMAT = '-d "api_paste_format=textFormat"'
+" let g:PASTER_TEXT_AREA = "api_paste_code"
+" let g:PASTER_URI = "http://pastebin.com/api/api_post.php"
+" let g:PASTER_FIXED_ARGUMENTS = '-d "api_dev_code=XXXXX&api_option=paste"'
" let g:PASTER_RESPONSE_FLAG = "^http:"
" function! g:Paster_ParseLocationFrom(line)
" let locator = "n/a"
View
22 plugin/paster.vim
@@ -28,19 +28,27 @@
" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"
"
-" CONTRIBUTOR EMAIL IRC /NICK
-" ---------- ----- ---------
-" Eugene Ciurana http://ciurana.eu/contact pr3d4t0r
-" Andrew Lombardi http://www.mysticcoders.com kinabalu
-" Matt Wozniski mjw@drexel.edu godlygeek
-" Will Gray graywh@gmail.com graywh
-" Michael Jansen http://michael-jansen.biz n/a
+" CONTRIBUTOR EMAIL IRC /NICK
+" ----------- ----- ---------
+" Eugene Ciurana http://ciurana.eu/contact pr3d4t0r
+" Andrew Lombardi http://www.mysticcoders.com kinabalu
+" Matt Wozniski mjw@drexel.edu godlygeek
+" Will Gray graywh@gmail.com graywh
+" Michael Jansen http://michael-jansen.biz n/a
+" Matthew Weier O'Phinney http://weierophinney.net/matthew weierophinney
"
" Special thanks to stepnem, iamjay_, jerbear, and other denizens of the
" #vim channel (irc://irc.freenode.net/#vim)
"
" Version history:
" ----------------
+" 20110411 1.4 Updated pastebin support to v2 API.
+"
+" 20101216 1.3 Added pastebin.com support. Moved configuration
+" into a separate vim script, and modified to use vim
+" globals, allowing for configuration via vimrc.
+" Added documentation file.
+"
" 20091011 1.2 Option to open a web browser after the paste
" is posted to the pastebin site. See the
" paster-config.vim file for examples. Set the
Please sign in to comment.
Something went wrong with that request. Please try again.