Wednesday, July 2, 2014

Playing with formatlistpat regexp atoms

Hi all!

After discovering great formatlistpat I started to play with, increasing
it with my needs. But I found a problem regarding atoms, specifically
the or operator (|) of them. See this problem:

set formatlistpat=\\(\\a\\d\\)\\.

This formatlistpat works for lists like "a2." "b7." and so on, but if I
insert a "\\|" it stops to interpret it:

set formatlistpat=\\(\\a\\|\\d\\)\\.

This doesn't work.

Also, not escaping "|" is not an option since it interprets it as part
of vimscript.

How can I make this work?

Thank you very much!

--
Silas Silva

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: