tweekmonster / django-plus.vim

:guitar: Improvements to the handling of Django related files in Vim
MIT License
179 stars 15 forks source link

indentation not working #12

Open D1mon opened 6 years ago

D1mon commented 6 years ago
{% extends "base.html" %} {% load static %} {% load cache %} {% block content %} {% cache 500 product_list %}                                     
<div class="container">                                                                                                                                
  <ul>                                                                                                                                                 
    {% for product in object_list %}                                                                                                                   
    <li><a href="{% url 'product_detail' product.id %}">{{ product.title }}</a></li>                                                                   
    {% endfor %}                                                                                                                                       
  </ul>                                                                                                                                                
</div>                                                                                                                                                 
{% endcache %} {% endblock %}

all the blocks are lined up in one line, and also it is necessary that the li tag has an indent

tweekmonster commented 6 years ago

Not experiencing this. But in my case, the HTML indentation is handled by this plugin: https://github.com/othree/html5.vim

I tried it with the default $VIMRUNTIME/indent/html.vim and it still worked fine. You might have another plugin that took over indentation.