[EMAIL PROTECTED] wrote:
Hello,

The vim 7.0 does not come with the file explorer, instead with the netrw
plugin.

However, I dislike it. My favorate is the file explore standard plugin.

I disabled the netrw plugin, I found the file explorer in the Vim 6.4 and
copied it into Vim 7.0 but it doesn't work.

When I use :Explorer, it reported error in the StartExplore function line
28.--- unable to open swap file for <a>

Well, I bet the Explorer functions well in Vim 6.4. Why can't it work in
Vim 7.0?

I'm running Vim 7.0 patch 035 on Cygwin, the exploere.vim comes from
runtime file in Vim 6.4

--
Sincerely, Pan, Shi Zhu. ext: 2606




Near the 28th line of function s:StartExplorer (at script line 206 in the explorer.vim for Vim 6.4 dated 2004 May 13) I see

    let startcmd = "edit " . fname

and 2 lines lower

  silent execute startcmd

which I suspect is the proximate cause of the error you mention. Now what is the value of the variable "fname"? Answer: it is defined inside the ":if" block starting at line 183 of the script. Conclusion:

- If the "start directory" argument to :Explore is not empty, then that becomes the value of "fname" - Otherwise, if expanding the directory of the current editfile gives a nonempty result, then that becomes the value of "fname"
- Otherwise, the value of "fname" is the word under (or nearest) the cursor.

Does that explain your question? "<a>" is obviously not a valid directory name, but somehow I suspect it is one of the three possible values of "fname" as listed above.

Maybe you should have downloaded the 6.4 helpfile for the Explorer plugin; I guess you would have found in it what I found above by inspecting the script source.


Best regards,
Tony.

Reply via email to