On Thu, Mar 03, 2011 at 08:44:37PM -0800, Bee wrote:
>
> 'formatlistpat' 'flp' string (default: "^\s*\d\+[\]:.)}\t ]\s*")
...
> must do this:
> ^\\s*\\(\\d\\\|\\a\\)\\+\\.\\s*
...
> With :set tw=64 it works great as follows:
Where might I read on how to emulate that super-nifty hierarchical
numbered list indenting? i.e.:
> 1. Lorem ipsum dolor sit amet, consectetur adipisicing:
> a. Lorem ipsum dolor sit amet, consectetur adipisicing elit,
> sed do eiusmod tempor incididunt ut labore et dolore
> magna aliqua. Ut enim ad minim veniam, quis nostrud
> exercitation ullamco. OR
> b. Lorem ipsum dolor sit amet, consectetur adipisicing elit,
> sed do eiusmod tempor incididunt ut labore et dolore
> magna aliqua. Ut enim ad minim.
> 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit,
> sed do eiusmod tempor incididunt ut labore et dolore magna
> aliqua. Ut enim ad minim veniam, quis nostrud exercitation.
Simply trying :set flp="^\\s*\\(\\d\\\|\\a\\)\\+\\.\\s*" just mashed
everything together when I used gq}. The alternative single quoted
shorter alternative did the same.
The bit I'm missing isn't obvious from here. Any hints greatly
appreciated.
Erik
--
Abbott's Admonitions:
(1) If you have to ask, you're not entitled to know.
(2) If you don't like the answer, you shouldn't have asked the question.
- Charles Abbot, dean, University of Virgini
--
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