Hi.

I remembered one track mentioning an editor on mac which allowed
collaborated editing. (See
http://en.wikipedia.org/wiki/Collaborative_real-time_editor) as well.

This would solve the problem as well, wouldn't it?
So perhaps we have to think about wether the same goal can be achieved
differently?

Solutions

Don't let the files differ too much by using kind of collaborated
editing:
  If only one person is editing:
    a) Write the buffer that frequently that the other instance can load it
       again (vim will ask you to do so). Thus mapping a-z and A-Z to :w would
       work ;) (But is much to slow.. I've tried it)
    b) When you leave the window using autocommands
        |FocusGained|           Vim got input focus
        |FocusLost|             Vim lost input focus
        Yakov, do you think this would work for you?
        Just use a :wa on FocusLost ?
        Then you even don't have to merge .. ;)


  multiple persons
   Much more effort (see links above)
but if they differ:
  Vim will warn you (warning: file has been changed. Do you really want
  to write ?) Or a message like this.
  The solution would be enhancing vim that you can catch this event and
  do your own merging/ diffing whatsoever.

I don't think that swapfiles are really a problem as you can ask vim to
use another swapfile if one already exists
( such as .1swo .2swo for the snd2 vim instance.. )
which can be done by vim scripting

Reply via email to