vmware-archive / salt-vim

Vim files for editing Salt files
Other
248 stars 73 forks source link

Add in jinja.vim as from Jinja Integration docs #30

Closed puneetk closed 9 years ago

puneetk commented 9 years ago

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:

# -*- coding: utf-8 -*-
# vim: ft=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.

dewingok commented 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.

puneetk commented 9 years ago

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.