title: Can vim recognize indentation styles (tabs vs. spaces) automatically?
body: <p>I'm working on a large codebase, where each file has different indentation conventions: tabs, 4 spaces, 3 spaces, etc.</p>
  
  <p>I currently default on tabs and do <code>set shiftwidth=N expandtab smarttab</code> when I come across a spaces-indented file, but that's annoying.</p>
  
  <p>Is there any functionality in Vim, or a plugin, which can recognize that, for instance, the current buffer uses an indentation with three spaces per shift?</p>