Jens-Wolfhard Schicke-Uffmann wrote:

> because I had immediate use for it, I implemented
> a prototype of the much requested (IIRC) multi-user feature:
> https://github.com/Drahflow/vim-multiuser/
> 
> To try:
> 
> Shell 1:
> % vim --multiuser-server    # opens listening socket on port 9999
> 
> Shell 2 to N:
> % vim
> :set remote=127.0.0.1:9999
> 
> 
> It essentially cuts into the ml_append / ml_delete interface
> and forwards the changes to a central master document on a server,
> keeping track of various versions of line-numbers in the process.
> 
> The remote option is buffer local and logically replaces the current
> file contents with the server document contents (which are initially empty).
> 
> 
> TODO
> * Documentation
> * Only os_unix, HAVE_SELECT correctly polls the network socket
> * Error reporting and handling is very missing
> * The code organization should be improved
> * Marks, folds and cursors in other windows are not yet adjusted (but it's 
> clear how this can be done)
> * Adjust buffer change/needs-write/etc. logic at various places
> * Enable initial upload (currently, please use :r to load a file into the 
> server)
> * Figure out various still unknown edge-cases
> 
> Is there a realistic chance to get it accepted upstream?
> If so, what other things should I keep in mind before producing a patch?

It is very unlikely I will include half a solution.
You need to take care of authentication, for example.

One thing would be awesome: To have a cross-platform collaboration edit
mechanism that works will several editors.  One that only works with Vim
will be limited in worldwide acceptance.

Google Drive offers something that might work. The mechanism is working
very well, at least for Google documents.  Problem is that the library
is only available for JavaScript.  So it would require embedding a
JavaScript interpreter in Vim.  It's not impossible...
https://developers.google.com/drive/realtime/

There is an example editor: Neutron Drive:
http://googledevelopers.blogspot.ch/2013/03/build-collaborative-apps-with-google.html

-- 
ARTHUR:  Then who is your lord?
WOMAN:   We don't have a lord.
ARTHUR:  What?
DENNIS:  I told you.  We're an anarcho-syndicalist commune.  We take it in
         turns to act as a sort of executive officer for the week.
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui