finds.dev

antirez/kilo

A text editor in less than 1000 LOC with syntax highlight and search.

View on GitHub

★ 8,997CBSD-2-Clauseupdated Jan 2025

// the take

Kilo is a minimal terminal text editor written in a single C file with no dependencies — not even curses. antirez wrote it in a few hours as a teaching artifact and proof-of-concept. Its real audience is people who want to understand how terminal editors work at the VT100 escape-sequence level.

Single-file C with zero external dependencies means you can read the whole thing in an afternoon and actually understand it. The VT100 escape sequence handling is done by hand, which is educational in a way that curses abstracts away. It has syntax highlighting and incremental search, which are non-trivial features for ~1000 lines. antirez's code is clean and readable — this is a good base for a 'build your own editor' project.

Alpha quality and intentionally unfinished — the TODO file lists missing features and the author has been clear it's not meant for production use. No undo. No multiple buffers or split panes. UTF-8 support is essentially absent, which will corrupt non-ASCII files silently. The project has been mostly dormant since 2016 with only occasional minor fixes; if you want a maintained minimalist editor for actual use, look at busybox vi or micro instead.

We read the README, the directory tree and a key source file in June 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
8,997
Forks
973
Language
C
License
BSD-2-Clause
Last commit
4 Jan 2025

// nearby

If kilo isn't quite it.

All repos →