sponsor Vim development Vim logo Vim Book Ad

bg.py : Post to your blog at blogger.com from gVIM.

 script karma  Rating 4/5, Downloaded by 770  Comments, bugs, improvements  Vim wiki

created by
sourcefield.blogspot.com sourcefield.blogspot.com
 
script type
utility
 
description
Tested on windows only.
Requirements:  
1. python "http://python.org"; installed.
2. Google Data APIs -  "http://code.google.com/p/gdata-python-client/"  ; gdata-python-client
  can be downloaded from here : "http://gdata-python-client.googlecode.com/files/gdata.py-1.0.10.latest.zip";
 
install details
Installation :
1.Install python
2.Download gdata-python-client  unpack and run "setup.py install"
3.download bg01.zip unpack bg.py and place in any folder mentioned in %PATH%  
4. add this line to your _vmrc file :

nnoremap <Leader>blog :! bg.py --f %:p --u my@email.com  --p inline<cr>

where my@email.com is your email registered on blogger.com  

--p inline - means that password will be asked on every posting to blog , you can specify it in this line if you want.
Than script will not be asking every time.
nnoremap <Leader>blog :! bg.py --f %:p --u my@email.com  --p mypassword<cr>

Using:
When you want to post current file to blog : just hit '\blog' enter password and new blog entry will be created.
I added post
http://sourcefield.blogspot.com/2008/01/how-to-blog-from-source-code-from-vim_09.html
how to create  blog with syntax-highlighted source code.
Please leave a word or question,concern,comment,jockes,bugs  http://sourcefield.blogspot.com/2008/01/post-to-your-blog-at-bloggercom-from.html
 

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
bg02.zip 02 2008-01-21 7.0 sourcefield.blogspot.com sourcefield.blogspot.com Updated reading password by getpass.getpass() python function  
Thanks Albie ( http://epidermis2.blogspot.com/ ) .
bg01.zip 0.1 2008-01-13 7.0 sourcefield.blogspot.com sourcefield.blogspot.com Initial upload
ip used for rating: 3.133.79.70

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