On , I learnt ...

About better YAML file folding in Vim

Using foldmethod=indent is ok but it’s better to use the pedrohdz/vim-yaml-folds plugin. The author gives more detail in Vim folding rules for YAML.