84cf4095d2b2

vim: and Django variables too
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 07 Apr 2011 10:29:55 -0400
parents c3129613e34a
children 005c0e414e9f
branches/tags (none)
files vim/.vimrc

Changes

--- a/vim/.vimrc	Thu Apr 07 10:27:09 2011 -0400
+++ b/vim/.vimrc	Thu Apr 07 10:29:55 2011 -0400
@@ -273,7 +273,10 @@
 au BufNewFile,BufRead *.html imap <buffer> <c-e><space> <c-e>.<bs>
 
 " Django tags
-au Filetype html inoremap <buffer> <c-t> {%<space><space>%}<left><left><left>
+au Filetype htmldjango inoremap <buffer> <c-t> {%<space><space>%}<left><left><left>
+
+" Django variables
+au Filetype htmldjango inoremap <buffer> <c-v> {{<space><space>}}<left><left><left>
 
 " }}}
 " CSS and LessCSS {{{