Changes between Version 5 and Version 6 of UsingVimWithDjango


Ignore:
Timestamp:
Jan 8, 2006, 5:18:54 PM (19 years ago)
Author:
davidschein@…
Comment:

template syntax hi-lighting

Legend:

Unmodified
Added
Removed
Modified
  • UsingVimWithDjango

    v5 v6  
    3333
    3434The [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
     38This is a simple addition to let Vim deal with Django template syntax:
     39
     40Create the file:
     41{{{$VIM/vimfiles/after/syntax/html.vim}}}
     42with the following content:
     43
     44{{{
     45syn region  djangotagmarkers start="{{" end="}}"
     46syn region  djangovariablemarkers start="{%" end="%}"
     47command! -nargs=+ HiLink hi def link <args>
     48HiLink djangotagmarkers PreProc
     49HiLink djangovariablemarkers PreProc
     50delcommand HiLink
     51}}}
Back to Top