title: Forcing multiple file types in Vim
body: <p>Vim supports <a href="https://stackoverflow.com/questions/2601403/multiple-file-types-in-vim">multiple file types</a> 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 <a href="http://www.duocoding.nl/blog/249/how-to-embed-dot-graphs-graphviz-in-latex" rel="nofollow noreferrer">here</a>, copy paste the code into vim and try setting the file type to any permutation of <code>.tex</code> and <code>.doc</code> or <code>.gv</code></p>
  
  <p>Is there a way to inform vim that I am entering a different file type block? Something like</p>
  
  <pre><code>\author{John Smith}
  \title{This is LaTex}
  
  \*!setfiletype .gv!*\
  digraph G{...}
  \*!setfiletype .tex!*\
  
  This is Latex Again
  </code></pre>