54f00c6bfa64

vim: django filetype autocommands
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 10 May 2011 10:36:10 -0400
parents 9bbd28435e0e
children c925b9fad53c
branches/tags (none)
files vim/.vimrc

Changes

--- a/vim/.vimrc	Mon May 09 16:34:24 2011 -0400
+++ b/vim/.vimrc	Tue May 10 10:36:10 2011 -0400
@@ -383,6 +383,13 @@
 au BufNewFile,BufRead settings.py  normal! zR
 au BufNewFile,BufRead dashboard.py normal! zR
 
+au BufNewFile,BufRead admin.py     setlocal filetype=python.django
+au BufNewFile,BufRead urls.py      setlocal filetype=python.django
+au BufNewFile,BufRead models.py    setlocal filetype=python.django
+au BufNewFile,BufRead views.py     setlocal filetype=python.django
+au BufNewFile,BufRead settings.py  setlocal filetype=python.django
+au BufNewFile,BufRead forms.py     setlocal filetype=python.django
+
 " }}}
 " Nginx {{{