[EMAIL PROTECTED] wrote:
A.J.Mechelynck ([EMAIL PROTECTED]) wrote:
Gregory SACRE wrote:
Hello Chip,
I followed your procedure, but unfortunately, the behaviour of netrw
surprised me.
The installation went fine, no error messages.
I tried the following command:
:Explore **//STRING
to find all the file containing the string STRING. The command just
hanged there, not doing anything, like freezing my gvim. I have to
type <CTRL>-C to stop. Before the update, it was giving me the list of
the files of the current directory and I could navigate through the
results using <SHIFT><UP> or <DOWN>.
When I tried:
:Explore */STRING
it gave me a lot of error messages that disappeared too fast for me to
read it.
Is there a way to get that output to be able to debug it with your help?
I'm running Vim 7.0 (compiled May 7 2006) on Windows XP (I didn't try
it on my Linux box at home).
Gregory
see
:help :messages
:help :redir
Best regards,
Tony.
Thanks Tony!
Based on your recommandations, I redirected the output which shows that when
there's a blank space in the path name, it takes the part before and after the
blank space as 2 seperate file:
D:/Rel23Components/lib/platform
"D:/Rel23Components/lib/platform" [New File]
Cannot open file "D:/Rel23Components/lib/platform"
Error detected while processing function netrw#Explore:
line 157:
E480: No match: STRING
***netrw*** no more files match Explore pattern
line 192:
E684: list index out of range: 0
E15: Invalid expression: w:netrw_explore_list[0]
line 194:
E121: Undefined variable: dirfile
E116: Invalid arguments for function substitute(dirfile,'/[^/]*$','','e')
E15: Invalid expression: substitute(dirfile,'/[^/]*$','','e')
line 198:
E121: Undefined variable: newdir
E116: Invalid arguments for function netrw#LocalBrowseCheck
line 203:
E121: Undefined variable: dirfile
E116: Invalid arguments for function
substitute(dirfile,"^.*/","","").'\>',"W")
E116: Invalid arguments for function search
The real path is D:/Rel23Components/lib/platform view/.
I hope this will help.
Gregory
Method I:
Try using /PLATFO~1/ instead of /platform view/ (or maybe PLATFO~2 or PLATFO~3
if you have several LongFileNames starting platfo* in the same directory).
Method II:
Filename arguments containing spaces usually require backslash-escaping in
Vim, i.e.
:Explore platform\ view/*
etc.
Note: There may be a difficulty with both approaches above if the path is
generated by the script (i.e., out of your control). I guess Dr. Chip will
know better than me how to solve your problem.
Best regards,
Tony.