Dnia sobota, 19 sierpnia 2006 05:36, cga2000 napisaƂ:
>
> Is there any way I can tell Vim that when line 1 starts with a number
> followed by a dot '.' .. the following lines should be indented so that
> all the text is aligned.
>
> Not simple .. I guess .. since this could move into double digits (or
> more..) -- there could be more than nine numbered paragraphs and text
> should start in column 5 (or 6..).

Vim7 option 'formatlistpat'::

    set formatlistpat=^\\s*\\(\\d\\+\\\|[A-Za-z]\\\|ps\\)[\\]:.)}]\\s\\+

will format digit and alpha/Alpha lists plus postscripts in mails.

m.

Reply via email to