Vim supports multiple file types for the main file formats. But this does not work for less popular formats such as LaTex and grapviz. Try it out for yourself, go here, copy paste the code into vim and try setting the file type to any permutation of .tex
and .doc
or .gv
Is there a way to inform vim that I am entering a different file type block? Something like
\author{John Smith}
\title{This is LaTex}
\*!setfiletype .gv!*\
digraph G{...}
\*!setfiletype .tex!*\
This is Latex Again