2
I'm using OS X, but I don't think that matters.
By default, both MacVim and [terminal] Vim handle auto-indentation of HTML 4.0 elements, but any HTML5 elements, such as <header>
and <footer>
, don't trigger the auto-indentation. They're also not syntax-highlighted.
How can I add let Vim recognize HTML5 elements, or better yet, make Vim recognize any element instead of only pre-configured ones?
I wasn't able to find the existing syntax file, but the one you linked to worked well. Thank you! – Closure Cowboy – 2011-06-21T06:24:04.213
You are welcome. The default HTML syntax file can be found in
/usr/share/vim
. For MacVim it's located inside of the app bundle. – romainl – 2011-06-21T07:30:04.777