On Fri, Feb 18, 2011 at 10:07 AM, Donald Allen <[email protected]> wrote:
>
> :ed foo/bar produces the message
>
> "foo/bar" is a directory
>
> whereas :ed foo/bar/ (which is what you get if you hit tab to complete) 
> produces
>
> "foo/bar" Illegal file name
>
> I understand that this is before the plugin is invoked, but why the 
> difference?
>
>

:ed foo/bar/ is trying to edit a file in the foo/bar directory, with
an empty name. You cannot have a nameless file, hence "illegal file
name".

:ed foo/bar is trying to edit a file called bar in the foo directory.
This name would be valid, except that there is already a directory
there with the same name. Hence, "foo/bar is a directory". I actually
get this message regardless of whether netrw loads.

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui