filetype.vim looks like: augroup filetypedetect
...
" Generic configuration file (check this last, it's just guessing!)
au BufNewFile,BufRead,StdinReadPost *
\ ... some files are being setf'ed to "conf"
" Use the plugin-filetype checks last, they may overrule any of the previously
" detected filetypes.
runtime! ftdetect/*.vim
augroup END
So, if Vim sets filetype to "conf", it is not possible to use
:setf from ftdetect/*.vim, because of "but only if not done yet
in a sequence of (nested) autocommands." setf feature.
Solution is simple - source ftdetect/*.vim before "conf"
fallback.
--
Regards,
Sir Raorn.
signature.asc
Description: Digital signature
