title: if filetype == tex
body: <p>I want to run a command in the .vimrc in case a file is a latex file. I think I have something with the syntax, it does not work. Any clue?</p>
  
  <pre><code>if &amp;filetype=='tex'
      set spell
  endif
  </code></pre>