Small text editor in less than 1K LOC
