Thursday, February 3, 2011

Re: Setting filetype with autocommand

On 4/02/11 5:05 AM, Marco wrote:
> On 2011-02-03 ZyX<zyx.vim@gmail.com> wrote:
>
>> :h :setfiletype
>> Set the 'filetype' option to {filetype}, but only if
>> not done yet in a sequence of (nested) autocommands.
>>
>> *only if not done yet*
>
> Thanks for pointing that out. I tried
>
> au BufRead, BufNewFile *.tex set filetype=context
>
> but I got the same result, still plaintex.

You should have no space after your comma.

Ben.

--
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

No comments: