title: How do I tidy up an HTML file's indentation in VI?
body: <p>How do I fix the indentation of his huge html files which was all messed up?</p>
  
  <p>I tried the usual <a href="https://stackoverflow.com/questions/506075/how-do-i-fix-the-indentation-of-an-entire-file-in-vi"><code>"gg=G</code> command</a>, which is what I use to fix the indentation of code files.  However, it didn't seem to work right on HTML files.  It simply removed all the formatting.</p>
  
  <p>I also tried setting <code>:filetype = xml</code>, to see if tricking it into thinking this was an XML file would help but it still didn't do it.</p>