set foldmethod=syntax, and naively expected that folding should automatically work, but that's not the case. What am I missing?
:help fold-syntax states:
A fold is defined by syntax items that have the "fold" argument. |:syn-fold|
The fold level is defined by nesting folds. The nesting of folds is limited with 'foldnestmax'.
Be careful to specify proper syntax syncing. If this is not done right, folds may differ from the displayed highlighting. This is especially relevant when using patterns that match more than one line. In case of doubt, try using brute-force syncing:
:syn sync fromstart
Found the files affecting the rendering of the buffer using
:scriptnames (with the help of this thread and this) - the list has 98 files, including at line 75:
The only place there is a
fold word is in this block, but too much of a novice to make sense of