Wednesday, August 25, 2010

Re: Netrw and new file through ftp connection

epanda wrote:
> Through ftp command from windows.
>
> But I have post a recent thread to make autologin possible from netrw
> too.
>
> Charles told me to see how is it working under Windows and it works
> like that :
>
> ftp -s:c:/ftpconnect.ftp hostname
>
>
> ftpconnect.ftp contains :
> mylogin
> mypassword
>
> Can we set some variable into netrw to enable transparent login to
> ftp ?
>

I think you're looking for the g:netrw_ftp_cmd; something like

let g:netrw_ftp_cmd= "ftp -s:c:/ftpconnect.ftp"

in your <.vimrc>. You may need full paths to ftp and ftpconnectt.ftp in
the string, too.

Now, to create a new, empty file using netrw and ftp: see :help netrw-%

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: