Indentation and syntax in vim for non-standard elements

angularjs, html, polymer, vim

Solution

I use https://github.com/othree/html5.vim.git with Pathogen. Doesn't help too much with indentation, but highlighting works correctly.

Problem

I'm writing a app in Polymer (and I have the same issue with custom angular directives). For HTML elements like `div`, `span`, etc the indentation and highlighting works fine in Vim. For custom directives/elements like `<paper-tabs>` it does not. Indentation leaves them all on the same line, and highlighting is broken: How can I make vim take all elements at the beginning of a `<elementname attribute="value">` and treat them like a normal HTML element - like `<div>` for example.

Original source