Copying this question over from https://stackoverflow.com/q/42474604/262108I recently started working with django templates and was wondering whether there are any autocompletion plugins for template directives like {% block|if|... %}
etc that do not involve a snippets library.
I specifically do not want a snippet plugin because I find them quite distracting when editing code. Most snippet plugins would require digging thru' the docs and to figure out configuration to disable (rather than enable) snippets.
I am thinking something along the lines of auto-pairs and xmledit which does something like (assuming |
is the cursor):
{% block ... %}| <-- recognize I entered a "%}"
complete it to:
{% block ... %}
| <------- place the cursor here
{% endblock %}
}
. Analyse what is before and copy-paste-adapt it in the next line.