mirror of
https://github.com/lepture/vim-jinja.git
synced 2025-11-12 13:23:50 -05:00
3a953da16ccde04759cfc7b6a228a0d60e8c9b32
As can be found on https://www.webforefront.com/django/usebuiltinjinjastatements.html jinja tags can actually start and end with a `-` after resp. before the `%` sign. This has been added to the regex.
Jinja for Vim
Jinja bundle for vim.
Feature
- full syntax support
- great indent support
Installation
Install with Vundle
If you are not using vundle, you really should have a try. Edit your vimrc:
Bundle "lepture/vim-jinja"
And install it:
:so ~/.vimrc
:BundleInstall
Install with pathogen
If you prefer tpope's pathogen, that's ok. Just clone it:
cd ~/.vim/bundle
git clone https://github.com/lepture/vim-jinja.git
Configuration
No configuration is needed, if you are using vim 7.2+, it will detect if a html file is a jinja template.
But if you want to ensure it works well, you can edit your vimrc:
au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm set ft=jinja
Bug report
Report a bug on GitHub Issues.
Description
Languages
Vim Script
100%