On Thursday 28 May 2009 04:50:01 pm Tim Chase wrote:
> > I don't know if it is called co-editing, i.e. serveral men edit the same
> > file at the same time, each modification also shows up on the others' vim
> > instand.
> >
> > Is it possible? If so, how to do it?
>
> I don't believe it's a native ability for Vim.  However, I know
> you can use "screen" to share shell sessions, which by extension
> would allow sharing of a vim session.  However, it's the same vim
> instance, not the editing of disjoint areas of the same file (you
> can't be editing the top of the document while your coworker
> edits the bottom of the file at the same time).
>
> If you're willing to use asynchronous methods, you can use a
> revision-control system that allows you to merge changes back
> together (i.e. not a "locking" model).  That way, each person can
> work on their own local copy (perhaps automatically committing to
> the repository at brief intervals) using their own local OS/Vim
> instance.  There are piles of options:  Subversion, Mercurial,
> Git, Bazaar, CVS, and Darcs are popular choices[1] (the first 4
> have risen to the top of popular mindshare).
>
> Lastly, there might be some sort of "concurrent editing" script
> on vim.org or the wiki but I'm not familiar with such.
>
>
> If you're trying to teach someone Vim, the screen-sharing may
> work better.  If you're just trying to get stuff done in parallel
> on the document, the shared revision-control system is a better
> route, able to keep all edits separate, and provide you with a
> history of who did what.  All very handy.
>
> -tim
>
> [1]
> http://en.wikipedia.org/wiki/List_of_revision_control_software
> http://en.wikipedia.org/wiki/Comparison_of_revision_control_software

If you don't mind using a GUI, and if  you're in Linux, then you could use 
Gobby (which does exactly what you're thinking: multiple people simultaneously 
editing the same file).

I don't know of an equivalent on the console or through Vim, alas.

Hope it helps!

-- 
Sincerely,
Jack Mudge
[email protected]

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to