# HG changeset patch # User Steve Losh # Date 1305038170 14400 # Node ID 54f00c6bfa64faa09e1fd2886c5bd170c2aa0a5d # Parent 9bbd28435e0ee9936db4602fa89d1bb4ba2b7438 vim: django filetype autocommands diff -r 9bbd28435e0e -r 54f00c6bfa64 vim/.vimrc --- 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 {{{