Is there an analog of mmm mode for vim? This would allow me to have syntax highlighting of several modes in the same file.
This is typically done using
:syn-include to include another language's syntax rules for a specified region of a parent syntax file.
The child syntax needs to be included as its own cluster:
syn include @otherLang path/to/syntax/otherLang.vim
Then a region in the parent syntax is defined where the child syntax should apply:
syn region otherLangRegion start=startRegex end=endRegex contains=@otherLang