Kilo: A Minimalist Text Editor in Under 1K Lines of Code

2025-05-20
Kilo: A Minimalist Text Editor in Under 1K Lines of Code

Kilo is a tiny text editor written in less than 1000 lines of code (using cloc). It boasts a surprisingly useful feature set for its size, including saving (Ctrl+S), quitting (Ctrl+Q), and string searching (Ctrl+F). Importantly, Kilo uses no external libraries and relies on standard VT100 escape sequences. Created by Salvatore Sanfilippo (antirez), it's designed as a learning resource and a starting point for building more advanced command-line interfaces or editors. The project is open source under the BSD 2-clause license.

Development