Hi,

ZyX wrote:
> Reply to message «Re: grep quickfix window question», 
> sent 17:31:43 18 October 2010, Monday
> by Jürgen Krämer:
> 
>> So when Vim has its run-time directories on a file system that
>> distinguishes between lower and upper case letters, the filetype name
>> must match exactly in case.
> I know that. But the pattern in Filetype event is not related to the 
> filename: 
> if I rewrite this plugin so that it will load files case-insensitively even 
> on 
> linux, it will not solve the initial problem that QF does not match qf on 
> linux.

in the Vim source there is no distinction made between matching a
filename against a pattern or matching a filetype name agains a pattern
during an auto-command (see function match_file_pat() in src/fileio.c).
And because filetype names are ultimately linked to filenames of filetype
plugins and syntax files (I know I repeat myself) the way they are in
$VIMRUNTIME/ftplugin.vim (i.e., by just using the value of the 'filetype'
option) this makes sense.

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

-- 
You received this message from the "vim_use" 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

Reply via email to