c3129613e34a

vim: add the Django tag shortcut
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 07 Apr 2011 10:27:09 -0400
parents 40da0a59288f
children 84cf4095d2b2
branches/tags (none)
files vim/.vimrc

Changes

--- a/vim/.vimrc	Thu Apr 07 10:22:20 2011 -0400
+++ b/vim/.vimrc	Thu Apr 07 10:27:09 2011 -0400
@@ -272,6 +272,9 @@
 au BufNewFile,BufRead *.html imap <buffer> <c-e><cr> <c-e><s-cr>
 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>
+
 " }}}
 " CSS and LessCSS {{{