Carsten Agger wrote:
> I've been using vim to write articles and recently started using it for
> a book as well.
>
> I prefer to write everything as a text file w. textwidth=80 and have
> written this very simple script which uses the "txt2html" tool to
> generate an HTML file which can later be used to paste the formatted
> article into, eg., OpenOffice:
>
...snip...
>
> This script allows simple formatting like *italics* and _underline_, but
> I'd like something a but more "shiny", which would e.g. also recognize
> chapter and section headings and maybe even generate a TOC.
Carsten,
It doesn't do table of contents or chapter/section headings, but the
Txtfmt plugin provides bold, underline, italic (and if you enable the
option, standout, reverse and undercurl) attributes, as well as 8
configurable foreground text colors. I'm about to release version 2.0,
which will additionally support up to 8 configurable background colors.
I noticed that another user mentioned OTL (TVO - The Vim Outliner)...
Txtfmt highlighting regions can be nested inside other regions with the
appropriate option setting, so you could, for example, create Txtfmt
highlighting regions within TVO's indentation regions.
http://www.vim.org/scripts/script.php?script_id=2208
Hope it helps...
Brett Stahlman
...snip...
>
> Thanks in advance for any response,
>
> Carsten
>
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---