Great fun !
Then perhaps you could compare the performance with:
http://www.bluetail.com/~tobbe/edit_buf.erl
edit_buf.hrl
edit.hrl
This is the core buffer handling of an Curses
based editor I started to write once.
/Tobbe