Automatic twig syntax highlighting

Posted on 21st February, 2011 | Tagged:

Twig template files are very much like Jinja files, so we can use Vims inbuilt support to highlight Twig files with the Jinja highlighter by adding the following line to vim.rc::

au BufRead,BufNewFile *.twig set syntax=htmljinja

This also highlights the HTML, cool.

Comments

better change

Posted by asins, 24th Jul 2011
http://darcsden.com/daniel/dotfiles/browse/.vim/syntax/twig.vim ????????????${}??

Post new comment


type "i hate spam" in UPPER CASE

Tags

10 Latest Items