Search the web
Sign In
New User? Sign Up
vim · Vim (Vi IMproved) text editor users list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Text formatting tools   Message List  
Reply | Forward Message #105690 of 110463 |
Re: Text formatting tools




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
-~----------~----~----~----~------~----~------~--~---




Thu Jul 9, 2009 11:40 am

brettstahlman@...
Send Email Send Email

Forward
Message #105690 of 110463 |
Expand Messages Author Sort by Date

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 ...
Carsten Agger
agger@...
Send Email
Jul 9, 2009
9:29 am

Saluton Carsten :) ... Don't know about the TOC, but a time ago I heard from a tool called "otl" that does more or less what you want. Anyway, if your plan is...
Raúl Núñez d...
raulnac@...
Send Email
Jul 9, 2009
9:51 am

... 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,...
Stahlman Family
brettstahlman@...
Send Email
Jul 9, 2009
11:46 am

... You could try (multi) markdown (extended): http://en.wikipedia.org/wiki/Markdown Relatively simple syntax (I use it, though I don't really like the syntax)...
J.A.J. Pater
jajpater@...
Send Email
Jul 9, 2009
1:26 pm

... Thanks for all the tips - I'll check all of your suggestions out! It seems there are quite a few ways of doing this. :-) ...
Carsten Agger
agger@...
Send Email
Jul 9, 2009
1:46 pm

... I may not have made it clear in my original post, but Txtfmt permits not just bold, underline, italic, etc..., but also all the permutations thereof. So,...
Brett Stahlman
brettstahlman@...
Send Email
Jul 9, 2009
5:53 pm

... You may want to have a look at docutils, http://docutils.sourceforge.net/ "Docutils is an open-source text processing system for processing plaintext...
Xavier de Gaye
xdegaye@...
Send Email
Jul 9, 2009
4:20 pm

... +1 for reStructuredText. Easy to write, readable in source form, and looks good both in html and as latex converted to pdf. ~Matt ...
Matt Wozniski
mjw@...
Send Email
Jul 10, 2009
3:10 am

... I'm fond of reStructuredText as well. The Python project uses Sphinx (http://sphinx.pocoo.org/): "Sphinx uses reStructuredText as its markup language,...
Michael Henry
vim@...
Send Email
Jul 10, 2009
5:36 am

... Hash: SHA256 ... Hi Carsten, Another good almost-plain-text format is AsciiDoc [1] which I really like. It's similar to reStructuredText and is easy to ...
Simon Ruderich
simon@...
Send Email
Jul 10, 2009
5:02 pm

... Call me old-school -- heh, I'm a *vi* user for crying out loud! -- but I use groff with the mdoc or the newer mom macros. I figure that if you're already...
Charlie Kester
corky1951@...
Send Email
Jul 10, 2009
7:22 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help