django-template-textobjects
django-template-textobjects copied to clipboard
Some Vim textobject mappings for the django template language
Currently matchit gets setup unconditionally: https://github.com/mjbrownie/django-template-textobjects/blob/master/after/ftplugin/htmldjango/template_textobjects.vim#L48-L69 It would be nice if that was moved to a syntax file and made optional. Especially `b:match_words` should probably only get appended to, but...
Command: `vadi` Code: ``` {% if a %}{% if b %}{% if c %}{% else %}{% endif %}{% else %}{% endif %}{% endif %} cursor ^ expected [_____________________________] actual [______________________________]...
@kana has a branch with various fixes: https://github.com/kana/vim-textobj-django-template/compare/fix It has been forked a while ago already, but it might be nice to merge your work somehow.