UsingVimWithDjango: django_view_snippets.vim

File django_view_snippets.vim, 310 bytes (added by Kenneth Belitzky, 16 years ago)

SnippetsEmu for views.py

Line 
1if !exists('loaded_snippet') || &cp
2 finish
3endif
4
5let st = g:snip_start_tag
6let et = g:snip_end_tag
7
8exec "Snippet vview def ".st.et."(request):<CR>\"\"\"".st.et."\"\"\"<CR>".st.et.""
9exec "Snippet rr render_to_response('".st.et."',<CR>".st.et.",<CR>context_instance=RequestContext(request)<CR>)".st.et.""
Back to Top