I was looking for a blog publishing tool under Bash environment in Linux, and my search brought even better results — vimpress. It is VIM powered blog publishing tool.
There have been many introductions to this wonderful VIM plugin, but allow me to repeat the information just for my own record.
WHERE TO DOWNLOAD
This plugin is created by Adrien Friggeri, and you can get it from his blog
HOW TO INSTALL
Extract vimpress.tar.gz to .vim folder under your home directory
HOW TO CONFIG
Open ~/.vim/plugin/blog.vim, go to the Settings section and feed the necessary information
enable_tags = 1 blog_username = 'user' blog_password = 'password' blog_url = 'http://thinkweird.info/xmlrpc.php'
HOW TO USE
In VIM’s command line mode, key in the following commands to write and publish
BlogNew – write new article
BlogSend – publish your article
BlogOpen id – edit your article
BlogList – lists all articles
This post is published under vimpress.
One need to use very basic html codes such as inserting links, codes or quotes to make it work better. I mostly use [a href=”url address”]url address[/a], [!–more–] and [pre] in my blog posts (change the square brackets into sharp brackets for html codes).
For headings I just capitalize them.
Update: This plugin works perfect par one thing — if I add some above mentioned html codes, then it can only part of the post when re-opening the post for editing. It seems to be able to load right before where the the html appears. I’ll contact the author about this bug.
Update: the rest of the post following [!–more–] is regarded as comments, thus not shown. I’ll try to find some excerpt auto generator.