On May 7, 4:21 am, "Wu, Yue" <[email protected]> wrote:
> == Header 2 ==
>  Text of header 2.
>  * List 1 of header 2
>   Text 3
>  * List 2 of header 2
>   Text 4
>
> How to do determination on the fold level of List 1 of header 1, List 1 of 
> header 2
> and other.
>

Check :help fold-expr and think about it a little.

The link that John posted shows you one way to get the headings
folded.

:help fold-expr gives return values that can increase/decrease the
fold level. You may be able to just add something to the folding ideas
in the tip mentioned to return these values for list items.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to