I want to add that html is indented in vim. I am developing django and I would like to back out whenever the django template tag is used. Currently, using indentation of type filetype, it does not indent after template tags. So, currently my code looks like this:
{% do_something %} <div> <p>Hello</p> </div> {% end %}
And I would like it to recognize {%%} as a tag and indent like this:
{% do_something %} <div> <p>Hello</p> </div> {% end %}
Is there a filetype plugin for this or a way that I can add {%%} to the list of things that should be indented after?
source share