sponsor Vim development Vim logo Vim Book Ad

metaweblog : Submit your RST article in VIM  to Blog with metaweblog interface.

 script karma  Rating 0/0, Downloaded by 1047  Comments, bugs, improvements  Vim wiki

created by
Yugang LIU
 
script type
utility
 
description
Submit your **RST** article in VIM to Blog with metaweblog interface.

Feature:

+ direct submit **RST** article to Blog.
+ support **HTML** article
+ automatic upload image resource and fix link for **RST** when new post
+ browse recent blogs
+ delete blog
+ upload file manually

 
install details
Install
=======
0. Please install Docutils_ as RST tools, and Pygments_ for syntax highlight

.. _Docutils: http://docutils.sourceforge.net/
.. _Pygments: http://pygments.org/

1. install VIM plugin

.. code:: bash

    cp plugin/metaweblog.vim  ~/.vim/plugin/metaweblog.vim

2. Create new configuration file in ``~/.vim/password.vim``

.. code:: vim

    # password.vim
    let g:MetaWeblog_api_url='http://www.is-programmer.com/xmlrpc'
    let g:MetaWeblog_username='username'
    let g:MetaWeblog_password='password'

3. Install CSS to support style:

.. code:: bash

    # RST CSS style
    cat /usr/lib/python2.6/site-packages/docutils/writers/html4css1/html4css1.css > blog.css
    # code with scrolled bar
    echo "pre.code { overflow: auto; }" >> bslog.css
    # syntax highlight
    pygmentize -S default -f html -a pre.code >> blog.css

4. Upload blog.css to Blog site.

 

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
vim-metaweblog.tar.gz 1.0 2013-01-24 7.0 Yugang LIU Initial upload
ip used for rating: 3.15.5.183

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