jinja plugins for vim (syntax and indent)
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ftdetect Fixed nunjucks file type detection (#12) Nov 16, 2016
indent Fixed indentation, closes #1 (#9) May 20, 2016
syntax var support ', fix #2 Sep 21, 2012
README.md indent Sep 17, 2012

README.md

Jinja for Vim

Jinja bundle for vim.

Feature

  1. full syntax support
  2. 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.