Thank you for your answers.

> See ":help ftdetect". The "augroup" statements are also not necessary.
> The variable "did_load_filetypes" is set to 1 by
> $VIMRUNTIME/filetype.vim (at line 10 in the version for Vim 7.0, lat
> change May 02). Your script is sourced from line 2166 of the same
file,
> i.e., much later.

That was what I was thinking. How does one get "C. If your file type can
be detected by the file name." to work (from :help new-filetype) then,
given that my file type can in fact be detected by the filename.


> It's not a bug, it's a feature.
> As mentioned under ":help ftdetect" (in the NOTE at line 178 of
> filetype.txt for Vim 7.0, last change 2006 Apr 28), your
> $VIM/ftdetect/wibble.vim (or, maybe better, wibblewobble.vim) should
> only contain the single line

Deliberately named wibble.vim; this is just a test and I wanted to make
sure it wasn't just taking the filetype from the file suffix.


> Then you will probably want to write one or more of the following
> scripts (else the filetype detection is rather pointless):

Again this was just a test to see how things worked, so I don't really
need any of the other files at this point, but thanks!

Max

Reply via email to