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 = "g:\

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-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,

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 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

Re: filename completion and filereadable

2006-08-09 Thread A.J.Mechelynck
Alan G Isaac 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 many people constantly forget that double-quoted strings

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 20

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. Py

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

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 S

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 ""will be replaced by a "\". So "G:\Projekte\CS Simple\run.pyw" becomes "G:\Projekte\CS\ Simple