Fold every enviroment looking for \begin{ and \end{ pairs

It is easier to fold all enviroments this way.
However, your solution might be better, since it is easier to add the enviroments you want to fold, while my solution folds everything.