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.
A pattern ending in a star matches everything, which is usually not
having the desired effect, since there can be text files or something
else in the same directory.
I'll add the one mentioned. We can further tune this as needed.
--
ARTHUR: I am your king!
WOMAN: Well, I didn't vote for you.
ARTHUR: You don't vote for kings.
WOMAN: Well, 'ow did you become king then?
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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.