Closed bartels closed 10 years ago
I agree. But not sure is this able to do by now.
I was disappointed to find this issue closed with no solution but ended up finding this patched indent file that seems to do the trick: https://github.com/mgiuffrida/vim2/blob/patch-1/runtime/indent/html.vim
There are more discussion spread in different issue. But people reported the one vim built-in have some issue. So I rollback the change.
And there is another PR now https://github.com/othree/html5.vim/pull/71/files But I don't have enough time to look and test.
Using a custom html tag breaks indentation.
For example:
Now
gg=G
will unindent the id & class attributes oncustom-tag
. The indentation is also initially wrong if you "open"custom-tag
to edit inside.I can see custom tag names like this becoming widespread as web components get more usage.