Saturday, August 28, 2010

Re: Netrw and new file through ftp connection

epanda wrote:
> Anyway, if g:netrw_ftp_cmd has -s:
>
>> in it (or -S:), it will assume that its got login information like a
>> .netrc. I was able to avoid manual entry of the userid+password that
>> way.
>>
>
> Hum, I have tested v141a with this line in my _vimrc
> let g:netrw_ftp_cmd= "ftp -s:" . $home . "/.netrc ftpperso.free.fr"
>
> Then e ftp://mypathtomyftpwebsite/
>
> It seems like your script is reading .netrc containing all
> informations but doesn't mind about password information => I am not
> logged in.
>
The log shows that netrw identified your use of -s: (NetrwMethod shows
it picked method#2). This pick is correct.

The netrw_ftp_cmd should hold only the ftp command and options; ie. I'd
expect you to need to use:

let g:netrw_ftp_cmd= "ftp -s:".$home.".netrc"

When you use it, try

:e ftp://ftpperso.free.fr/whatever/path

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:

Post a Comment