filename completion

2007-05-07 Thread Yakov Lerner
Let's say I want to see which files end with t. When I do :e *ttab vim shows not only files anding with t but all files containing t, as if I did :e *t*Tab. How can I limit the filename completion only to files ending with t ? Yakov

RE: filename completion

2007-05-07 Thread Gene Kwiecinski
Let's say I want to see which files end with t. When I do :e *ttab vim shows not only files anding with t but all files containing t, as if I did :e *t*Tab. How can I limit the filename completion only to files ending with t ? Hmm, would think it's by design, but I tried :e *t$tab

Re: Filename completion with all directories in 'path'?

2007-04-23 Thread Ben Kovitz
On Apr 19, 2007, at 7:12 PM, Jean-Rene David wrote: Is there a way to make filename completion (pressing tab at the command line in :find) use all the directories in the 'path'? Not exactly what you ask, but here is a nice little script I use quite a bit which you might find helpful: http

Filename completion with all directories in 'path'?

2007-04-19 Thread Ben Kovitz
Is there a way to make filename completion (pressing tab at the command line in :find) use all the directories in the 'path'? A little background: I have unit tests in one directory, and mainline code in a separate directory. This is needed for source-code control and other things

Re: Filename completion with all directories in 'path'?

2007-04-19 Thread Jean-Rene David
* Ben Kovitz [2007.04.19 20:00]: Is there a way to make filename completion (pressing tab at the command line in :find) use all the directories in the 'path'? Not exactly what you ask, but here is a nice little script I use quite a bit which you might find helpful: http://www.vim.org/scripts

Re: filename completion not recognising pdf's

2006-10-19 Thread Benji Fisher
On Thu, Oct 19, 2006 at 11:57:22PM +0200, Eric Smith wrote: Vim does not complete pdf files with C-X C-F. Is there a place where I can alter this (mis)behavior? -- Eric Smith It does for me. Two options that may affect this are 'suffixes' and 'wildignore'. The first just gives

Re: filename completion and filereadable

2006-08-15 Thread Alexander 'boesi' Bösecke
Hi Am 09.08.2006 13:49:15 schrieb Alexander 'boesi' Bösecke: Well all the discussion about single and double quoted didn't solve my problem - the completion of a filename adds a \ before a space. Try the following: :let s = g:\\CS\ Simple\\ :echo s g:\CS Simple As you can see the additional \

Re: filename completion and filereadable

2006-08-15 Thread Yakov Lerner
On 8/15/06, Alexander 'boesi' Bösecke [EMAIL PROTECTED] wrote: Hi Am 09.08.2006 13:49:15 schrieb Alexander 'boesi' Bösecke: Well all the discussion about single and double quoted didn't solve my problem - the completion of a filename adds a \ before a space. Try the following: :let s =

Re: Re[2]: filename completion and filereadable

2006-08-10 Thread Matthew Winn
On Wed, 9 Aug 2006 23:03:12 -0400, Alan G Isaac [EMAIL PROTECTED] wrote: On Thu, 10 Aug 2006, A.J.Mechelynck apparently wrote: What is the raw string notation from Python ? IMHO it would only create one additional type of string. We already have single-quoted 'raw' strings in Vim, yet

Re: filename completion and filereadable

2006-08-10 Thread Alexander 'boesi' Bösecke
Hi Am 10.08.2006 16:02:54 schrieb Alan G Isaac: On Thu, 10 Aug 2006, Matthew Winn apparently wrote: But ... versus '...' is just as explicit. Ah, that explains why the question keeps coming up on this list and never in a Python forum ... Or not? In fact, apart from Python and XML I

Re: filename completion and filereadable

2006-08-10 Thread A.J.Mechelynck
Alan G Isaac wrote: On Thu, 10 Aug 2006, Matthew Winn apparently wrote: But ... versus '...' is just as explicit. Ah, that explains why the question keeps coming up on this list and never in a Python forum ... Or not? In fact, apart from Python and XML I can't think of any languages that

Re: filename completion and filereadable

2006-08-10 Thread A.J.Mechelynck
Alexander 'boesi' Bösecke wrote: Hi Am 10.08.2006 16:02:54 schrieb Alan G Isaac: On Thu, 10 Aug 2006, Matthew Winn apparently wrote: But ... versus '...' is just as explicit. Ah, that explains why the question keeps coming up on this list and never in a Python forum ... Or not? In fact,

filename completion and filereadable

2006-08-09 Thread Alexander 'boesi' Bösecke
Hi I'm using let fn = input('Mainfile: ', expand('%:p'), 'file') to ask for a filename. When I press Tab to complete the filename, a spacewill be replaced by a \space. So G:\Projekte\CS Simple\run.pyw becomes G:\Projekte\CS\ Simple\run.pyw. When I check this filename with filereadable, it

Re: filename completion and filereadable

2006-08-09 Thread Yakov Lerner
On 8/9/06, Alexander 'boesi' Bösecke [EMAIL PROTECTED] wrote: Hi I'm using let fn = input('Mainfile: ', expand('%:p'), 'file') to ask for a filename. When I press Tab to complete the filename, a spacewill be replaced by a \space. So G:\Projekte\CS Simple\run.pyw becomes G:\Projekte\CS\

Re: filename completion and filereadable

2006-08-09 Thread Alexander 'boesi' Bösecke
Hi Am 09.08.2006 14:08:04 schrieb Yakov Lerner: Looks like an input() bug to me. To me it looks even more strange. I've tested a bit more. :echo filereadable(G:\Projekte\CS Simple\run.pyw) :echo filereadable(G:\Projekte\CS\ Simple\run.pyw) returns 0 :echo filereadable(G:\\Projekte\\CS

Re: filename completion and filereadable

2006-08-09 Thread Yakov Lerner
On 8/9/06, Alexander 'boesi' Bösecke [EMAIL PROTECTED] wrote: Hi Am 09.08.2006 14:08:04 schrieb Yakov Lerner: Looks like an input() bug to me. To me it looks even more strange. I've tested a bit more. :echo filereadable(G:\Projekte\CS Simple\run.pyw) Use single quotes, where backslash is

Re: filename completion and filereadable

2006-08-09 Thread Alexander 'boesi' Bösecke
Hi Am 09.08.2006 15:16:08 schrieb Yakov Lerner: Use single quotes, where backslash is not treated specially. Otherwize ..\r... will be treated as CR char, ...\t... as tab char etc, which is not what you want. Umm sorry I always forgot the difference between single and double quoted. Python

Re[2]: filename completion and filereadable

2006-08-09 Thread Alan G Isaac
Am 09.08.2006 14:08:04 schrieb Yakov Lerner: Looks like an input() bug to me. On 8/9/06, Alexander 'boesi' Bösecke [EMAIL PROTECTED] wrote: To me it looks even more strange. I've tested a bit more. :echo filereadable(G:\Projekte\CS Simple\run.pyw) On Wed, 9 Aug 2006, Yakov Lerner

Re: filename completion and filereadable

2006-08-09 Thread A.J.Mechelynck
Alan G Isaac wrote: Am 09.08.2006 14:08:04 schrieb Yakov Lerner: Looks like an input() bug to me. On 8/9/06, Alexander 'boesi' Bösecke [EMAIL PROTECTED] wrote: To me it looks even more strange. I've tested a bit more. :echo filereadable(G:\Projekte\CS Simple\run.pyw) On Wed, 9 Aug 2006,

Vim 7 filename completion menu location bug

2006-06-21 Thread Neil Bird
/kernel-doc-2.6.16/Documentation/kbuild /usr/share/doc/kernel-doc-2.6.16/Documentation/kbuild /usr/share/doc/kernel-doc-2.6.16/Documentation/kbuild/ With the cursor at then end, I type C-XC-F to do filename completion, and the selection menu comes up partially off-screen on the right. I'll try

filename completion ignorecase for Vim 7

2006-06-17 Thread Gerald Lai
Hi all, For Vim 7, it seems that filename completion in the :cmdline ignores case when searching for matches. For example, :e FTab matches both foo.txt Foo.txt This is different from Vim 6 where it only matches Foo.txt Is there any way to revert back to the old behavior? -- Gerald

Re: filename completion ignorecase for Vim 7

2006-06-17 Thread liujiaping
try :noic On Sat, Jun 17, 2006 at 02:32:46AM -0700, Gerald Lai wrote: Hi all, For Vim 7, it seems that filename completion in the :cmdline ignores case when searching for matches. For example, :e FTab matches both foo.txt Foo.txt This is different from Vim 6 where it only

Re: filename completion ignorecase for Vim 7

2006-06-17 Thread Bram Moolenaar
Gerald Lai wrote: For Vim 7, it seems that filename completion in the :cmdline ignores case when searching for matches. For example, :e FTab matches both foo.txt Foo.txt This is different from Vim 6 where it only matches Foo.txt Is there any way to revert back

Re: filename completion ignorecase for Vim 7

2006-06-17 Thread Gerald Lai
On Sat, 17 Jun 2006, Bram Moolenaar wrote: Gerald Lai wrote: For Vim 7, it seems that filename completion in the :cmdline ignores case when searching for matches. For example, :e FTab matches both foo.txt Foo.txt This is different from Vim 6 where it only matches Foo.txt

Re: filename completion ignorecase for Vim 7

2006-06-17 Thread Gerald Lai
On Sat, 17 Jun 2006, A.J.Mechelynck wrote: Gerald Lai wrote: On Sat, 17 Jun 2006, Bram Moolenaar wrote: Gerald Lai wrote: For Vim 7, it seems that filename completion in the :cmdline ignores case when searching for matches. For example, :e FTab matches both foo.txt Foo.txt