Sometimes the syntax is fine, but all that breaks is the folds. In this case, zx helps a lot.
From the VIM documentation:
gh
Refresh folds: cancel open and closed folds manually: re-apply 'foldlevel', then do “zv”: view the cursor line. Also makes recount folds. This is useful when using 'foldexpr', and the buffer is changed in such a way that causes wrinkles to not be updated properly.
Wormer Apr 11 '15 at 14:45 2015-04-11 14:45
source share