masukomi / vim-markdown-folding

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

markdown_ignore_first #22

Closed nhooyr closed 7 years ago

nhooyr commented 8 years ago

I find it annoying that with nested folding, the first level header is folded. I've added an option for my preferred behaviour.

nelstrom commented 8 years ago

I'm wary of adding configuration options to a plugin like this, but I can see why you want this behaviour.

My first thought on seeing this patch was: "doesn't Vim already have a relevant option built-in?" Digging around in the docs, it looks as though I was thinking of the 'foldlevelstart' option. Unfortunately, it's not possible to set that option locally for a buffer, it can only be configured globally, so I don't know if that's going to help.

nhooyr commented 8 years ago

@nelstrom I tried that already. Problem is, if I close all folds, it still closes the first header fold, which is annoying. Buts its alright, I'll just use my fork, its a very small change anyway.