metaweblog : Submit your RST article in VIM to Blog with metaweblog interface.
| script karma |
Rating 0/0,
Downloaded by 1175 |
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.
|
| |
script versions (upload new version)
Click on the package to download.
ip used for rating: 216.73.216.147
|