I have folding on markdown headers set up courtesy of Vlad Irnov's markdown 
folding script. Recently I've encountered something that strikes me as an 
anomaly. I've reread most of the help on folding and am not finding anything 
that seems relevant.

I have a file that has several markdown headings, the first of which has 
several subheadings, which are followed by three headings. When I fold on the 
first heading it includes the first two headings after the subheadings in the 
fold. I assume, perhaps mistakenly, that folding on markdown headings should 
respect markdown header levels, e.g., that no top level heading would be 
included in the fold of another top level heading. 

Something that is probably relevant: The fold column in the text below all 
headings and subheadings except the last display the number "2", while for the 
last it displays the vertical bar '|'. 

Not surprisingly, when I opened all the folds and did a [z and ]z to check the 
beginning and end of folds in the file there were only two, with the first 
including all headings and subheadings except the last heading.

Why are the first two headings after the last subheading being included in the 
first heading fold? Is there a way to changed them to first level folds?

Thanks, 
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA
[email protected]




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