Learning about gap buffers in Emacs today. I love that Emacs exposes gap-position and gap-size so you can play with internal state!