On Thu, Mar 17, 2011 at 03:05:23PM +0100, Jürgen Krämer wrote:
> 
> the way you have set formatlistpat "photos." is interpreted as the
> start of an item in a list. You get better results with
> 
>   :set formatlistpat=^\\s*\\(\\d\\+\\\|\\a\\)\\.\\s*
> 
> Note that I have moved the \+ quantifier to immediately behind \d so
> that only one or more digits and exactly one letter are allowed as
> "numbers".

Thank you very much! :-)

You've seen by analysis what I've been stumbling toward through a tedious
process of elimination, including updating to 7.3. (Overcoming my
pathological aversion to all the backslashes, and belatedly translating it
to more resemble a posix ERE; ^\s*(\d|\a)+\.\s* , I can now understand
it. Should have done that _much_ earlier.)

It's a slippery slope. You'll have me reading (with difficulty) vim's RE
dialect before long, ... and it doesn't hurt as much as I expected.)
Maybe I can write a small awk script to translate both ways. The trouble
is I'll understand vim REs by the time it works right.

Thanks again.

Erik

P.S. Some years ago, I tried bulding vim with a posix regex library.
     It was a delight to use, except that the help broke.

-- 
History doesn't always repeat itself. Sometimes it just screams,
'Why don't you listen to me?' and lets fly with a big stick.
                                                  --John W. Campbell Jr.

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

Reply via email to