Monday, October 11, 2010

Re: Problem with netrw

Tintin72 wrote:
> Hi,
>
> I want to edit a file on a remote server so I tried to use netrw but
> I misunderstand how does it work.
> First I type:
>
> Nread ftp://login@server.com/index.html
>
> Vim ask me for the password then open the file in a cache as "no file
> name".
> But when I want to save modifications I get an E32 error.
> I thought whenever I save the file, all modifications are echoed on
> the index.html remote server file,
> but they don't.
>
> Is someone could help me ?
>
Are you getting a message such as "could not get file status for..."?
Does index,.html previously exist, or are you trying to create the
file? If you're getting a "no file name" buffer, then the ftp operation
apparently failed; the E32 results because you're subsequently trying to
save a file with no name.

If you're trying the create the file, then here's two solutions:

1. vi local file
:w ftp://login@server.com/index.html

2. vi ftp://login@server.com/
% (then enter index.html at the prompt)
(edit file)
:wq

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: