title: How do you override vim options via comments in a python source code file?
body: <p>I would like to set some vim options in one file in the comments section.</p>
  
  <p>For example, I would like to set this option in one file</p>
  
  <pre><code>set syntax=python
  </code></pre>
  
  <p>The file does not have a .py extension and I am not interested in making my vim installation recognise all files with this extension as python files.</p>
  
  <p>I know this can be done because I have seen it, but my googling for this has not yet been fruitful.</p>