From 2244cb02712f4ee083751b6e0ee1bc1252f37060 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Wed, 30 May 2018 14:42:05 +0200 Subject: [PATCH] Also recognise .j2 files as jinja2 templates --- .vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index a2ca405..0eda109 100644 --- a/.vimrc +++ b/.vimrc @@ -366,8 +366,9 @@ Plugin 'digitaltoad/vim-pug' " Highlight nginx Plugin 'chr4/nginx.vim' -" Highlight jinja templates +" Highlight jinja templates (e.g., .j2 files) and do proper indenting Plugin 'lepture/vim-jinja' +au BufNewFile,BufRead *.j2 set ft=jinja " CSV filetype plugin "Plugin 'chrisbra/csv.vim' " apparently doesn't work this way ;)