Closed puneetk closed 9 years ago
You could add autocmd BufNewFile,BufRead *.j2,*.jinja2,*.jinja set ft=jinja
to your Vimrc. Or use a Jinja Vim plugin that supports filetype detection for *.jinja (Glench/Vim-Jinja2-Syntax and lepture/vim-jinja).
Personally, I'm using Glench's Jinja plugin.
sounds good, thanks
Puneet
On Mar 19, 2015, at 18:35, Nick Dewing notifications@github.com wrote:
You could add autocmd BufNewFile,BufRead .j2,.jinja2,.jinja set ft=jinja to your Vimrc. Or use a Jinja Vim plugin that supports filetype detection for .jinja (Glench/Vim-Jinja2-Syntax and lepture/vim-jinja).
Personally, I'm using Glench's Jinja plugin.
— Reply to this email directly or view it on GitHub.
This is the jinja syntax file as recommended in Jinja Integration, helps in editing map.jinja files as long as modeline is setup and ft is set to jinja:
If there is a better way to do this, please let me know, I have kept all the original comments/copyright from the author at vim scripts page.