Thursday, February 3, 2011

Re: Setting filetype with autocommand

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

No comments: