Ask HN: How to learn about text editor architectures and implementations?
You could start by looking at something super simple like Kilo:https://github.com/antirez/kiloEven I could understand this one pretty well and that's no small matter.