title: Setting Vim whitespace preferences by filetype
body: <p>At my work, I am required to follow the house style for indentation, which goes as follows:</p>
  
  <ul>
  <li>2 spaces when coding html and ruby</li>
  <li>tabs when coding javascript, with tabwidth=4 recommended</li>
  </ul>
  
  <p>What is the best way to specify different whitespace preferences per filetype?</p>