I wrote the following in my .vimrc file in order to automate getting an HTML file set up.
:imap html<tab>
\<html><enter>
\<tab><head><enter>
....
and so on. However, when I use this in an .html file the tabs are very off, seemingly because tabs in HTML files are treated like sequences of spaces rather than single characters. I'm open to any kind of suggestions, either about how to deal with this issue or more broadly if there's a better way to be accomplishing what I'm trying to do.
:h template
.