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.
对于像div、span等HTML元素,缩进和突出显示在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.
如何使vim在
1 个解决方案
#1
6
I use https://github.com/othree/html5.vim.git with Pathogen. Doesn't help too much with indentation, but highlighting works correctly.
我使用https://github.com/othree/html5.vim.git来处理病原体。缩进没有太大的帮助,但是突出显示功能是正确的。
#1
6
I use https://github.com/othree/html5.vim.git with Pathogen. Doesn't help too much with indentation, but highlighting works correctly.
我使用https://github.com/othree/html5.vim.git来处理病原体。缩进没有太大的帮助,但是突出显示功能是正确的。