Among other things, version control systems were invented to allow several people to work on the same code. But there is another option: Distributed editing. Everyone works on the same code at the same time and all changes are sent to all involved users at the same time.
Welcome Saros – Distributed Collaborative Editing and Distributed Party Programming