sponsor Vim development Vim logo Vim Book Ad

django.vim : Syntax highlighting for Django templates

 script karma  Rating 723/263, Downloaded by 14689  Comments, bugs, improvements  Vim wiki

created by
Dave Hodder
script type
Type ":setfiletype htmldjango" from within Vim to select highlighting for Django HTML templates.  If you desire Django template highlighting but not HTML highlighting, type ":setfiletype django" instead.  Items highlighted include template tags, built-in filters, arguments and comments.

(N.B. For Vim 7.1 and later you shouldn't need the additional htmldjango.vim file.)
install details
Save the files django.vim and htmldjango.vim to your ~/.vim/syntax directory.

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.vim 1.08 2012-04-07 6.0 Dave Hodder Highlights the elif tag and truncatechars filter, both from Django 1.4.  Thanks to iynaix (Lin Xianyi).
django.vim 0.1 2009-01-12 6.0 Dave Hodder matchit plug-in (extended "%" matching) for common Django template tags.  Copy to your ~/.vim/ftplugin directory.  Thanks to Michael Brown.
htmldjango.vim 1.05 2007-01-28 6.0 Dave Hodder Improved error highlighting.
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.