sponsor Vim development Vim logo Vim Book Ad

blogit.vim : A script to blog on wordpress

 script karma  Rating 60/23, Downloaded by 5438  Comments, bugs, improvements  Vim wiki

created by
Romain Bignon
 
script type
utility
 
description
This script allows you to list, edit, write and publish articles on Wordpress. It uses the XML-RPC API and provides the following commands:

":Blogit ls [blog_name]"
Lists all articles in the blog
":Blogit new [blog_name]"
Opens page to write new article
":Blogit edit <id> [blog_name]"
Opens the article <id> for edition
":Blogit page <id> [blog_name]"
  Edit a blog page
":Blogit commit"
Saves the article to the blog
":Blogit push"
Publish article
":Blogit unpush"
Unpublish article
":Blogit rm <id>"
Remove an article
":Blogit tags"
  Show tags and categories list
":Blogit this"
  Create a blog post from current buffer
":Blogit preview"
  Preview current post locally
":Blogit help"
Display help

Edited articles are displayed like mails.

Website: http://symlink.me/wiki/blogit
 
install details
Get package and uncompress it in your ~/.vim directory.

Create a file called passwords.vim somewhere in your 'runtimepath'
(preferred location is "~/.vim/"). Don't forget to set the permissions so
only you can read it. This file should include:

    let blogit_username='Your blog user name'
    let blogit_password='Your blog password. Not the API-key.'
    let blogit_url='https://your.path.to/xmlrpc.php'

In addition you can set these settings in your vimrc:

    let blogit_unformat='pandoc --from=html --to=rst --reference-links'
    let blogit_format='pandoc --from=rst --to=html --no-wrap'

The blogit_format and blogit_unformat each contain a shell command to
filter the blog entry text (no meta data) before a commit and after an
edit, respectively. In the example we use pandoc[1] to edit the blog in
reStructuredText[2].

If you have multible blogs replace 'blogit' in 'blogit_username' etc. by a
name of your choice (e.g. 'your_blog_name') and use:

    let blog_name='your_blog_name'
or
    let b:blog_name='your_blog_name'

to switch which is used by default. If a blog post/comment/list is open in
the current buffer that is used instead. To explicitly select which blog
should be used with the commands ls, new, this and edit add your_blog_name
as and aditional argument, e.g.:

    Blogit edit 42 your_blog_name
 

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
blogit-1.4.3.tar.bz2 1.4.3 2010-01-02 7.0 Romain Bignon * Added infrastructure for acceptance tests;
* Added gettext i18n;
* Fixed pep8 compliance;
* Fixed setting date on ":Blogit commit" and "push";
* Fixed time in blog posts;
* Improved help file.
blogit-1.4.2.tar.bz2 1.4.2 2009-10-28 7.0 Romain Bignon Minor bugfixes:

* Fixed encoding issues;
* Fixed omnicomplete issues.
blogit-1.4.1.tar.bz2 1.4.1 2009-09-19 7.0 Romain Bignon This minor release fixes some bugs:

* Implemented sending new pages;
* Implemented (un)pushing of pages;
* Fixed dates.
blogit-1.4.tar.bz2 1.4 2009-09-10 7.0 Romain Bignon This is probably the final stable release of the 1.x branch. Here is changelog:

* Introduced the *Blogit page* command to edit a page content (closes #134);
* Ability to give the blog name to edit/ls/new/this commands;
* Fixed non-ascii problem with datetimes;
* Fixed "variables not updated when switching blogs" (closes #144);
* Several other minors fixes;
* Added vim documentation file for blogit.
* Code refactoring;
* Better unitary tests system.

Really thanks to Adam who has still done a lot of work.
blogit-1.3.tar.bz2 1.3 2009-08-16 7.0 Romain Bignon This release is mostly a bugfix release:

* Finished up displaying comments;
* Fixed order of comments;
* Fixed comment count;
* Support shortening of Blogit-commands;
* Update comments via ":Blogit commit";
* Fixed using multible buffers;
* Added command "preview";
* Code cleanup.
blogit-1.2.tar.bz2 1.2 2009-07-18 7.0 Romain Bignon This new release of blogit.vim introduces this new features:

* Added the “:Blogit this” command to create a blog post from the current vim buffer;
* The “:Blogit categories” command is merged into the “:Blogit tags” command;
* Comments can be displayed with “gf” on “Status”,

There is also some minor (or less minors) bugfixes.

Thanks to Adam Schmalhofer for contributing.
blogit-1.1.tar.bz2 1.1 2009-06-21 6.0 Romain Bignon The blogit.vim 1.1 release's changes are:
* Use a separated file to set blogit.vim settings.
* Use of filter to get/post text. Default is pandoc, to display text as ReST.
* Multi-blogs support.
* Localized timestamps.
* Date/times are displayed in users preferred time format.
* Omni-complete categories and tags.

There are also some bug fixes, and code cleanup.

Thanks to Adam Schmalhofer for his patches.
blogit-1.0.1.tar.bz2 1.0.1 2009-04-11 7.0 Romain Bignon The blogit.vim 1.0.1 release fixes these issues:
* option to disable tags (which are a wordpress plugin)
* datetime issues (datetime is now UTC)
blogit-1.0.tar.bz2 1.0 2009-04-11 7.0 Romain Bignon Initial version.
ip used for rating: 18.232.88.17

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