Changes between Version 5 and Version 6 of UsingVimWithDjango
- Timestamp:
- Jan 8, 2006, 5:18:54 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsingVimWithDjango
v5 v6 33 33 34 34 The [http://www.vim.org/scripts/script.php?script_id=301 xml.vim] plugin is really useful for editing XML and HTML files. It makes tag completion easy and allows you to bounce between start and end tags. 35 36 == Syntax for tempates == 37 38 This is a simple addition to let Vim deal with Django template syntax: 39 40 Create the file: 41 {{{$VIM/vimfiles/after/syntax/html.vim}}} 42 with the following content: 43 44 {{{ 45 syn region djangotagmarkers start="{{" end="}}" 46 syn region djangovariablemarkers start="{%" end="%}" 47 command! -nargs=+ HiLink hi def link <args> 48 HiLink djangotagmarkers PreProc 49 HiLink djangovariablemarkers PreProc 50 delcommand HiLink 51 }}}