For some Markdown documents, I like them to open with some sections initially folded (I use the plugin vim-markdown-folding). I've tried setting a modeline that looks like this:
<!-- vi: set foldmethod=indent foldlevel=1: -->
This works, but unfortunately, every time I save the buffer, even with it still open, the folding is reset back to
foldlevel 1. I'd really like it if the modeline only took effect when the file is first opened.
Is this possible?