I have a partial HTML file (It's actually Drupal template file with *.tpl.php extension). The root tag is <div>. The file has bad indentation of nested tags (They're on the same level and should be shifted more to the right).
Do you know how to correct the indentation with some vi command? Not manually because the file is quite large.
Things that does not work:
filetype plugin indent on
in .vimrc file