Loading ...
Sorry, an error occurred while loading the content.

104696Re: How to co-editing?

Expand Messages
  • Wu, Yue
    Jun 1 5:39 PM
      On Mon, Jun 01, 2009 at 07:14:18PM +0200, Raúl Núñez de Arenas Coronado wrote:
      > Please note that no matter if you use an inotify-based solution or some
      > autocommands to monitor the file and reload+merge it, this is very error
      > prone and problems will happen as soon as two writers make incompatible
      > changes (both of them modify the exact same line, for example).
      > Your problem has no easy solution using Vim, because the only way you
      > could use Vim for what you want to do is to have just ONE Vim instance
      > acting as "server", and that instance is the only with physical access
      > to the concurrently-edited file. After that, each person editing the
      > file just uses a "client" Vim that sends keystrokes to the server. The
      > server performs the actions from all clients and updates all of them
      > with the new file contents. This is not concurrent at all, because the
      > actions from the clients are serialized, but it is collaborative,
      > changes are shown automatically, etc. The only problem with this
      > solution is that, as far as I know, you can set up a Vim server editing
      > a file and accepting keystrokes from clients, but you cannot set up a
      > "client" Vim that sends all the keystrokes to the server and receives
      > the updated file contents. The only way I know of sending keystrokes to
      > a "server" Vim is to use "--remote-send".

      Hi, man, really thank you for so patient help and advicing! I'd better find a
      right tool for my purpose, it's wrong to make vim to be an OS :)

      Wu, Yue

      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
    • Show all 25 messages in this topic