Hari Krishna Dara wrote:

> > > The help on glob() or globpath() don't indicate what type of
> > > metacharacters are accepted, but there is a separate section called
> > > |file-pattern| that describes the metacharacters used for filename
> > > matching for autocommands. I don't know if these are applicable for
> > > glob() and globpath() as well, but a lot of these don't seem to work as
> > > described. Is there a different section that I am missing to see, or is
> > > it completely left out? Are the metacharacters predictable, or dependent
> > > on the platform and environment? If so, is there a base set that could
> > > work on all?
> > >
> > > The reason I am asking is that I would like to translate a
> > > filename-pattern to a Vim regex-pattern such that I can highlight the
> > > part of the filename that matched the filename-pattern, after getting
> > > the results from glob() or globpath(), so I need to know all the
> > > supported chars.
> >
> > glob() should work as described at ":help wildcard".  There are
> > small differences depending on the system.
> 
> Thanks Bram. This covers "**" as well, but doesn't mention most of the
> other wildcards that are applicable for |file-pattern|, which makes
> sense. I was however surprised to see "{}" working to group patterns and
> "," working to separate patterns with in them. Is this something extra
> for windows and undocumented?

For Unix the {} things are detected and then expansion is done by the
shell.  I don't see how {} things can work on MS-Windows.  Perhaps you
compiled with Cygwin?

> It is also strange that the [abc] wildcard
> always matches as if 'ignorecase' is turned on. Is there a way to force
> a 'noignorecase' on windows?

On MS-Windows case of file names is always ignored.

-- 
hundred-and-one symptoms of being an internet addict:
10E. You start counting in hex.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to