Changes between Version 63 and Version 64 of UsingVimWithDjango
- Timestamp:
- Sep 21, 2016, 2:13:40 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsingVimWithDjango
v63 v64 69 69 HiLink djangovariablemarkers PreProc 70 70 delcommand HiLink 71 }}} 72 73 Vim 7.1 or newer includes support for "htmldjango" documents out of the box. With {{{filetype on}}} on your {{{~/.vimrc}}} configuration file, vim will automatically tell apart "htmldjango" documents from regular html ones. Just make sure that at least one of the first 10 lines in your html document matches the following regex from the start: 74 75 {{{ 76 {%\s*\(extends\|block\|load\)\>\|{#\s\+ 77 }}} 78 79 If you are not familiar with regexes, these are the possible options: 80 81 {{{ 82 {% extends 83 {% block 84 {% load 85 {# 71 86 }}} 72 87