On Sun, Jan 27, 2019 at 02:29:51PM +0100, Bram Moolenaar wrote:
> 
> James McCoy wrote:
> 
> > filetype.vim contains the following:
> > 
> >  485 au BufNewFile,BufRead *.com                    call 
> > dist#ft#BindzoneCheck('dcl')¶
> >   …
> > 1954 au BufNewFile,BufRead 
> > */etc/apache2/*.conf*,*/etc/apache2/conf.*/*,*/etc/apache2/mods-*/*,*/etc/apache2/sites-*/*,*/etc/httpd/conf.d/*.conf*
> >            call s:StarSetf('apache')¶
> > 
> > It's not uncommon for apache configuration, especially those under
> > sites-*/*, to use a filename that matches *.com.  In that case, the dcl
> > filetype will be set rather than apache.
> 
> So, how do you propose we solve that?  Perhaps:
> 
> au BufNewFile,BufRead */etc/apache2/sites-*/*.com     setf apache

Reversing the order of the existing autocmds would fix the issue, but
then there are * patterns early in filetype.vim.  I suppose adding your
suggested autocmd before the dcl one would achieve the same effect.

Cheers,
-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui