>> Please read :help netrw-debug and make a debugging trace. That way we
>> can find out exactly what's happening.
>>
>
>
> Without any own setting, DEcho trace that :
> <snip>
>
> and it works but I have to type my password.
>
> ------------------
>
> With this line in my vimrc it fails.
>
> let g:netrw_ftp_cmd= "c:/Windows/System32/ftp -s:" . $home . "/
> ftpconnect.ftp ftpperso.free.fr"
>
>
I was rather hoping to see what happened with your g:netrw_ftp_cmd -- so
I could figure out why it fails. The trace you sent is expected
behavior; netrw assumes that since it has an ftp request but no
$HOME/.netrc, then it needs to ask for userid+password.
The case you want handled, that is, with -s:... , isn't currently
detected as ftp+.netrc. If you called the file .netrc instead of
ftpconnect.ftp, it might work, as then netrw would detect $HOME/.netrc
and assume that ftp will know how to logon via the .netrc file. If you
would bear with me, perhaps if you changed the file's name to .netrc and
trace netrw with that. If it works, of course, then perhaps I could
write some code to let netrw assume method#2 when "-s" is in
g:netrw_ftp_cmd (ie. ftp+.netrc).
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