sponsor Vim development Vim logo Vim Book Ad

django.vim : Syntax highlighting for Django templates

 script karma  Rating 428/132, Downloaded by 4057

created by
Dave Hodder
 
script type
syntax
 
description
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. These are the Django template scripts included with Vim 7.1.  They are an improvement over the Vim 7.0 scripts.)
 
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 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.
django.vim 1.06 2008-12-30 6.0 Dave Hodder Added 'autoescape' to built-in tags.
htmldjango.vim 1.05 2007-01-28 6.0 Dave Hodder Improved error highlighting.
htmldjango.vim 0.1 2007-01-25 6.0 Dave Hodder Indent file.  Makes indenting within Django HTML template files the same as within regular HTML.  Copy to your ~/.vim/indent directory.

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.
   
SourceForge.net Logo