Abhi Yerra

Rants of lunatic

WordPress Posting Vim Script

I wrote a Python VIM Script that allows you to post to WordPress or any other blog system that allows Metaweblog API. It is pretty neat and I am currently using it to post to the Blog. I’ll post the code soon. I still have to deal with some issues. I want to be able to pick and choose categories to post to, and maybe be able to deal with tags. However, I’ll post the current code as it is pretty good for what it is now.

Please put this in your .vimrc. Also be sure that your vim has python compiled into it.

python 

The first list is the title, unless it has InfoLine, then the title is the second line. What the InfoLine does is it stores the postid so if you decided to edit the post and repost it, you won't create a compeletly new post.

When you want to post run the following:

[code]
:py post_blog()

If you want to map it to something do this:

map  :py post_blog()

Enjoy!

Written by abhiyerra

May 16, 2006 at 3:53 pm

Posted in all

2 Responses

Subscribe to comments with RSS.

  1. [...] I found a way last night. A Berkeley student with the same itch, Kesava Yerra, wrote a Python Vim script that posts to WordPress. Supposing you’ve installed the Ultimate Tag Warrior plug-in for WordPress, his script even lets you tag your post. (An earlier version didn’t have tagging.) [...]


Comments are closed.