Deutsch Open-Source Weblog Resources zopyx group Imprint

Python, Zope, Plone — Development and Consulting

What can we do for you?

Your contact
Andreas Jung will assist you. Please call
+49(0)70 71/79 33 76

Or use our Callback service

Editing RestructuredText with vim

— abgelegt unter:

While converting  some of my projects README.txt file to restructured text with vim, I came across the VST package for vim which provides  reST support. After installing VST you can type
:Vst html
or
:Vst pdf 
to generate HTML or PDF from the restructured text document in your current buffer..that's pretty nifty.

With an additional line in your .vimrc configuration file you can configure your own command that converts the buffer to HTML, saves the generates HTML on the filesystem and starts Firefox to preview the file:
.vimrc (LINUX):
:com RP :exec "Vst html" | w! /tmp/test.html | :q | !firefox /tmp/test.html

.vimrc (MacOSX):
:com RP :exec "Vst html" | w! /tmp/test.html | :q | !open /tmp/test.html

and you call the conversion pipeline from vim using new 'RP' command (RestPreview):

:RP
Artikelaktionen

Testimonial

We are using Plone since 2005 for the for the online representation of groups and scientiic projects of the Friedrich-Miescher-Laboratory.

Thanks to the expertise of Andreas Jung we were able to finish our complex Plone migrations within a short period of time and customize Plone add-ons optimal to our needs.

Gunnar Rätsch, Group leader, Friedrich-Miescher-Laboratory of the Max-Planck-Society, Tübingen

 
ZOPYX Ltd., Charlottenstr. 37/1, D-72070 Tübingen, Germany
Phone +49(0)70 71/79 33 76, Fax +49(0)70 71/7 93 68 40, Email: info@zopyx.com
Contact form Callback service Print page