On 05/07/09 17:19, Mr.SpOOn wrote:
>
> Hi,
> sometimes I edit files on a server using Vim with netrw. This works
> fine, but at some point I find myself editing a temp file in a local
> /tmp directory instead of the same file on the server. This happens
> often when I use the ftp protocol. Usin ssh, via scp:// things go
> better.

Vim should be able to edit even over ftp, but only if you have write 
permission on the file (which probably means nonanonymous ftp). For 
servers that you often use, you can create a ~/.netrc file (see ":help 
netrw-netrc", and "man ftp" under "THE .netrc FILE"). However that file 
contains passwords in clear, so it must not be readable by anyone but 
you, and the sysadmin (or anyone knowing the root password) can still 
read it.

>
> But sometimes I work with a friend. This is not the best thing to do,
> but we work this way. We tell each other which file we are using and
> work on another one. That works. But sometimes, if I have a previously
> edited file open and then he opens it too, I cannot edit it anymore.
> It automatically switch to the temp file.
>
> I'm sure there are a lot of good reasons for this, but is there a way
> to change this behaviour?

Hm, I'm not sure. Maybe there's write-locking involved? If several 
people make changes to the same file at the same time, problems are 
bound to happen.


Best regards,
Tony.
-- 
The debate rages on: Is PL/I Bachtrian or Dromedary?

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to