Thursday, February 3, 2011

Re: Setting filetype with autocommand

This is to say, you actually need to use :set filetype=plaintex rather
than :setfiletype.

ZyX, please don't top-post. (I'm continuing to top post, though, as
mixed posting is terribly confusing.)

Ben.

On 4/02/11 4:47 AM, ZyX wrote:
> Reply to message «Setting filetype with autocommand»,
> sent 20:36:08 03 February 2011, Thursday
> by Marco:
>
> :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*
>
>
> Original message:
>> Hi,
>>
>> sorry for spamming the list but I've got another question.
>> I have the following line in my .vimrc
>>
>> au BufRead, BufNewFile *.tex setfiletype context
>>
>> Why is the filetype still »plaintex« after opening a .tex file?
>>
>>
>> Regards
>> Marco

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