Sunday, June 19, 2011

Vim lines… and poetry

I use Vim to write a book.
Each Vim line ended by a carriage return will be a paragraph of the
book. Thus a single Vim line (which is wrapped, e.g. with a 80
character screen in 10 screen lines) can end as a 15 line paragraph in
the book. But I have one problem : I want to make quotes of poetry,
such as (Coleridge RAM.2)

The fair breeze blew, the white foam flew,
The furrow followed free;
We were the first that ever burst
Into that silent sea.

and I would like to hold that quote in one single Vim line (and 4
screen lines), because I want to number the paragraphs of the book.

The only way I can think of is to type spaces to the end of the screen
line (e.g. 38 spaces for the first verse, 55 for the second, etc...),
which is both tedious and unable to cope with a 75 or 90 (whatever)
character screen…

How can I proceed ? I have heard of elastic tabstops ? Are they
necessary ? Are they available for Vim ?

I know this - rather (too) long - question may seem irrelevant in a
programmer's world, but it is a real problem for me…

Thanks in advance.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: