Thursday, March 4, 2010

Re: netrw troubles

rameo wrote:
> I have found an error in netrw plugin why I can't go inside some
> directories.
>
> I always receive this message in these directories (using "t"):
>
> Not a regular file^M
>
>
> After testing and trying I found the reason:
> every ftp directory without an ending "trailing slash" gives this
> error.
>
> so...
>
> public_html/my-directory ---> above error
> public_html/my-directory/ ---> ok
>
> How can I resolve this problem?
>

The problem appears to be that you're not getting the trailing slashes
(see :help netrw-dirlist). The trailing slash indicates to netrw that a
directory listing rather than a file transfer is wanted. Remote
directory listings should have slashes for directories; if you're having
problems in not having that trailing slash, then there's either an odd
ftp client or a server. To track down such a problem -- see :help
netrw-debug. Is it a M$ server?
> ----------------------------------
> then there is a little (I suppose vim) error after sending a command
> (2 lines):
> "My FTP command" "--No lines in buffer--
> "My FTP command" "--No lines in buffer--
> Press ENTER or type command to continue
>

Try :set ch=2 or :set ch=3 and see if that helps. The "No lines in
buffer" message is issued by vim before netrw gets invoked, so netrw
can't do anything about them.

Regards,
Chip Campbell


--
You received this message from the "vim_use" 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

No comments: