Saturday, April 20, 2013

Re: syntax.vim: filetypedetect BufRead

On Saturday, April 20, 2013 7:54:50 AM UTC-5, xeon123 wrote:
> The syntax highlight in vim 7.3 doesn't work. I get the following error. How can I fix that?
>
> Error detected while processing /usr/share/vim/vim73/syntax/syntax.vim:
> line 42:
> E216: No such group or event: filetypedetect BufRead
>
> I'm using Debian 7.0.
>
> Thanks,

Works fine for me. Maybe you're using a "tiny" Vim or something? What are the first few lines of your :version output?

The line 42 in my /usr/share/vim/vim73/syntax/syntax.vim is:

doautoall filetypedetect BufRead

Maybe you need to turn on filetype detection prior to turning on syntax highlight? I seem to remember someone on this list saying that "syntax on" automatically implies filetype detection, but it's worth a shot to put "filetype on" before "syntax on" in your .vimrc.

This could also be "filetype plugin on", "filetype indent on", or "filetype indent plugin on" for more features.

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