masukomi / vim-markdown-folding

Fold markdown documents by section.
248 stars 43 forks source link

Nesting of header levels? #20

Closed hansdude closed 9 years ago

hansdude commented 9 years ago

Consider the following document:

# H1

stuff

## H2

stuff

### H3

stuff

Currently I get these folds:

# H1 [3 lines]
## H2 [3 lines]
### H3 [2 lines]

But I really want nested folds:

# H1 [8 lines]

Expanded:

# H1

stuff

## H2 [5 lines]

Etc.

Thoughts?

nelstrom commented 9 years ago

vim-markdown-folding supports two different folding styles already. You can switch between them by running:

:FoldToggle