Thanks, Tony. I will play around with file completion like you suggest, but what I really want is for vim on cygwin to behave like more like it does on unix and to be able to conform to the behavior of other tools like bash.
-- John > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Tony Mechelynck > Sent: Wednesday, November 26, 2008 11:01 AM > To: [email protected] > Subject: Re: Case sensitive file globbing on cygwin > > > On 26/11/08 16:30, [EMAIL PROTECTED] wrote: > > On cygwin, when I run /bin/ls M* on the command line, it > shows one file. > > But when I run :e M* from within vim, it shows "E77: Too many file > > names". This is because I have a single file with a name > starting with > > "M" but I also have files with names starting with "m". I know that > > windows file systems are case-insensitive, but I'm trying > to emulate a > > unix environment, so I want to be able to turn off this behavior and > > have file globbing match in a case-sensitive way. > > I have not been able to find any setting which will allow this to > > happen. The way I have been able to work-around this is to replace > > CASE_INSENSITIVE_FILENAME in src/os_unix.h with some > garbage symbol and > > then recompile. > > Can you add a runtime-settable option of some sort to allow > controlling > > this behavior? It's better for this to be runtime-settable > rather than > > compiled-in to match the behavior of other tools. For example, shopt > > [-s|-u] nocaseglob can toggle the corresponding behavior in bash. > > Thanks! > > John Wiersba > > Set 'wildmenu' on; then > > :e M<Tab> > > will, if you have more than one M* file in the current > directory, show > the possible completions as a menu on the bottom statusline. > Select with > <Left> <Right>, possibly walk the directory tree with <Down> (descend > into child) and <Up> (back to parent), approve with <Enter>, > cancel with > <Esc> > > > Best regards, > Tony. > -- > War hath no fury like a non-combatant. > -- Charles Edward Montague > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
