title: Text editor theory
body: <p>As I'm always dissatisfied with existing editors, a project I always wanted to start is my own text editor. However doing text editing is serious business.</p>
  
  <p>Besides analyzing the source code of existing text editors, is there any book or other resource (like academic work) about this topic? I'm interested especially in something that teaches how to handle memory and how to manage text insertion (if you have a 100 MB file and want to add a char at <em>x</em> position, you can't just <code>memmove</code> the huge text block...).</p>