diff options
Diffstat (limited to 'dotfiles/.vim/ftdetect/jinja.vim')
-rw-r--r-- | dotfiles/.vim/ftdetect/jinja.vim | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/dotfiles/.vim/ftdetect/jinja.vim b/dotfiles/.vim/ftdetect/jinja.vim deleted file mode 100644 index d700140..0000000 --- a/dotfiles/.vim/ftdetect/jinja.vim +++ /dev/null @@ -1,14 +0,0 @@ -" Figure out which type of hilighting to use for html. -fun! s:SelectHTML() - let n = 1 - while n < 50 && n <= line("$") - " check for jinja - if getline(n) =~ '{{.*}}\|{%-\?\s*\(end.*\|extends\|block\|macro\|set\|if\|for\|include\|trans\)\>' - set ft=jinja.html - return - endif - let n = n + 1 - endwhile -endfun -autocmd BufNewFile,BufRead *.html,*.htm call s:SelectHTML() -autocmd BufNewFile,BufRead *.jinja2,*.j2,*.jinja,*.nunjucks,*.nunjs,*.njk set ft=jinja |