005c0e414e9f

vim: fix Django mappings
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 07 Apr 2011 10:39:56 -0400
parents 84cf4095d2b2
children 06d9d1351890
branches/tags (none)
files vim/.vimrc

Changes

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