Saturday, April 27, 2013

Re: I'm not getting highlighting syntax for .twig files..

On 27/04/2013 19:39, Gary Johnson wrote:
> On 2013-04-27, Phil Dobbin wrote:
>> On 27/04/2013 14:41, Javier Garcia wrote:
>>
>>> Hi,
>>>
>>> I have installed .vim/syntax/htmljinja.vim and wrote this in my .vimrc:
>>>
>>> au BufRead,BufNewFile *.twig set syntax=htmljinja
>>
>> Try:
>>
>> 'au BufRead,BufNewFile {*.twig} set ft=htmljinja'
>
> The {} are not necessary.

That's right. Only if you intend to add more than one file extension (I
copied & pasted it straight out of my vimrc & deleted as appropriate).

Cheers,

Phil...



--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment