Normally a great boon to humanity, on occasion vim's indent-based folding will get confused and need a reset via :set foldmethod=indent
. Symptoms include the appearance of consecutive folded lines in the window.
Is there a way to avoid having this happen? Is it just me?
update
Although I'm pretty sure at this point that I've ID'd a bug, answers from people who try my bug reproduction script (linked to in my answer) will serve to actually answer my second question. And if somebody can tell me about the arcane setting that fixes this sketchy behaviour, they get 25 points (assuming that said advice is phrased in the form of an Answer). Actually I think I'll wait a day or two just to make sure I don't pester the good people of vim with a non-bug report.