robhudson / snipmate_for_django

Django snippets for SnipMate, the excellent Vim plugin

This URL has Read+Write access

name age message
file README Thu Aug 06 16:53:46 -0700 2009 First stab at Django snippets for SnipMate. [robhudson]
directory snippets/ Wed Oct 07 08:03:39 -0700 2009 Added snippets for StackedInline and TabularInline [robhudson]
README
Installation
============

Install SnipMate:
http://www.vim.org/scripts/script.php?script_id=2540

Copy `django.snippets` and `django_template.snippets` to your snippets
directory, typically at ~/.vim/snippets.

Activate the snippets by using the filetype setting.  For example:

  :set ft=python.django

For Django templates:

  :set ft=html.django_template

To set these automatically each time you run vim, add the following lines to
your .vimrc:

  autocmd FileType python set ft=python.django " For SnipMate
  autocmd FileType html set ft=html.django_template " For SnipMate

Enjoy!