UsingVimWithDjango: django_view_snippets.vim
File django_view_snippets.vim, 310 bytes (added by , 16 years ago) |
---|
Line | |
---|---|
1 | if !exists('loaded_snippet') || &cp |
2 | finish |
3 | endif |
4 | |
5 | let st = g:snip_start_tag |
6 | let et = g:snip_end_tag |
7 | |
8 | exec "Snippet vview def ".st.et."(request):<CR>\"\"\"".st.et."\"\"\"<CR>".st.et."" |
9 | exec "Snippet rr render_to_response('".st.et."',<CR>".st.et.",<CR>context_instance=RequestContext(request)<CR>)".st.et."" |