I am having some issues with filetype detection stuff. Here is what I am
doing, so far as I can see I am doing exactly what it says in the help.

1. I am on Windows, my runtimepath is 

~/vimfiles,C:\Program Files\Vim/vimfiles,c:\Progam Files\Vim\vim70,
C:\Program Files\Vim/vimfiles/after,~/vimfiles/after

The folder ~/vimfiles does not exist.


2. I have ":filetype plugin indent on" set in my vimrc file.


3. I place a file called wibble.vim in c:\Program
Files\Vim/vimfiles/ftdetect which contains the following:

if exists("did_load_filetypes")
  finish
endif
augroup filetypedetect
  au! BufRead,BufNewFile *.wibble       setfiletype wibblewobble
augroup END


4. I open a file called foo.wibble and do :set filetype, it returns
"filetype=". If I comment out the first three lines of wibble.vim
(namely the check on did_load_filetypes) then it works fine.


So, am I right in not including the did_load_filetypes check (which
:help ftdetect says you should have), or am I doing something wrong
elsewhere?

Cheers!

Max

Reply via email to