sponsor Vim development Vim logo Vim Book Ad

django template textobjects : textobject mappings for the django template language

 script karma  Rating 0/0, Downloaded by 3044  Comments, bugs, improvements  Vim wiki

created by
Michael Brown
 
script type
ftplugin
 
description
" Dependencies:
"
"     textobj-user by Kana Natsuno
"     http://www.vim.org/scripts/script.php?script_id=2100
"
"
" Overview:
"     This plugin adds some textobjects to the htmldjango filetype
"
"     idb/adb - in/around a django {% block %}
"     idf/adf - in around a django {% for %} loop
"     idi/adi - in/around a django {% if* } tag
"     idw/adw - in around a django {% with %} tag
"     idc/adc - in around a django {% comment %} tag
"     idC/adC - in around a django {% cache %} tag
"     ids/ads - in around a django {% spaceless %} tag
"
"    so Use as you would other text objects in visual selection, cutting and
"    dealleting etc.
"
" Installation:
"
"   Pathogen/Vundle (recommended):
"
"   git clone https://github.com/kana/vim-textobj-user.git ~/.vim/bundle/vim-textobj-user
"   git clone git://github.com/mjbrownie/django-template-textobjects.git ~/.vim/bundle/django_template_textobjects
"
"   Manual:
"
"   Please ensure you have the above plugins installed as instructed
"   This file should be in your after/ftplugin for htmldjango
"
"   ~/.vim/after/ftplugin/htmldjango/template_textobjects.vim
"
"
 
install details
"   Please ensure you have the above plugins installed as instructed
"   This file should be in your after/ftplugin for django_template
"
"   ~/.vim/after/ftplugin/htmldjango/template_textobjects.vim
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
django-template-textobjects-0-7-5.zip 0.7.5 2014-05-26 7.0 Michael Brown vim 7.4 compatibility fix. Thanks Daniel Hahler
django-template-textobjects-master.zip 0.7.4 2014-03-24 7.0 Michael Brown added django 1.4 {% elif %} matchit.vim pattern. thanks Youhei Nitta
django-template-textobjects-master.tar.gz 0.7.3 2012-12-04 7.2 Michael Brown Added general closed tag and variable matching idv/adv and idt/adt
eg. dadt will delete-around-django-tag {% url foo as bar %}
Added idT/adT for {% blocktrans %}
mjbrownie-django-template-textobjects-fc9c815.tar.gz 0.2.1 2012-08-18 7.2 Michael Brown added idC/adC for {% cache %}. comment fixes. fixed load issue when matchit.vim missing  - thanks aleprovencio
mjbrownie-django-template-textobjects-67c0f0f.zip 0.2.0 2010-03-11 7.0 Michael Brown Fixed a bufnr bug affecting around mappings
mjbrownie-django-template-textobjects-5ee23f9.zip 0.2.0 2010-03-11 7.0 Michael Brown Improved nesting logic. Removed matchit dependancy
mjbrownie-django-template-textobjects-4ed2ec5.zip 0.1.1 2010-03-01 7.0 Michael Brown Fix for inner block visual grabbing }{ . no match handling
django-template-textobjects-0.10.zip 0.1.0 2010-02-28 7.0 Michael Brown Initial Upload: Without git metafile
ip used for rating: 142.132.191.50

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github