Hacker GitHub

← All repos

antirez/kilo

View on GitHub ↗ ★ 9,214 C

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

32 mentions on Hacker News by 29 people: 7 stories, 25 comments · first 2016-07-10 · latest 2026-03-11

Mentions per year 32 mentions · busiest year 2016 (8)
20082026
  1. I had fun re-implementing antirez's "kilo" editor https://github.com/antirez/kilo There's a nice tutorial for it https://viewsourcecode.org/snaptoken/kilo/ Great way to learn more about terminal modes and write some raw C
  2. …it will be usable -- how fun would it be to build another project of mine using my own editor? [O] https://github.com/antirez/kilo [1] https://github.com/bloomca/love
  3. …3 ints instead of wasting space on padding for memory alignment), so it would have the same issue. https://github.com/antirez/kilo/blob/323d93b29bd89a2cb446de9...
  4. > It also inspired this similar Rust project And these projects: https://github.com/antirez/kilo/forks
  5. ▲ 222
    Kilo: A text editor in less than 1000 LOC with syntax highlight and search
    story by klaussilveira · 2025-05-19 · 82 comments
  6. Or kilo[1] [0]: https://github.com/antirez/kilo/
    comment by 90s_dev · 2025-05-19 · in Edit is now open source
  7. ▲ 3
    A text editor in less than 1000 LOC with syntax highlight and search
    story by ofou · 2025-03-20 · 0 comments
  8. Most of that is probably attributable to being based on Kilo: https://github.com/antirez/kilo - a tiny text editor written by antirez who notably also created Redis. Antirez has a bunch of really interesting side projects if you dig into…
  9. …editor in C in 11KB. Antirez's "kilo" (~1000 lines of C) is 36KB when compiled with standard gcc ( https://github.com/antirez/kilo ). That said, for many server-type use cases these days, 11MB isn't a huge deal. Still, I wonder if micro…
    comment by benhoyt · 2023-08-18 · in micro – A Modern Alternative to nano
  10. …is just to read the source code itself. It's only a thousand lines and it's well commented. https://github.com/antirez/kilo/blob/master/kilo.c
  11. …terminal stuff should look at antirez’ kilo, a terminal text editor in under 1000 lines of code: https://github.com/antirez/kilo There is a nice tutorial that walks through how one might write it from scratch:…
  12. You could start by looking at something super simple like Kilo: https://github.com/antirez/kilo Even I could understand this one pretty well and that's no small matter.
  13. …well documented and to my eyes pretty well written. A good place to start I think is Kilo:( https://github.com/antirez/kilo/blob/master/kilo.c ) - a 1000 line text editor with no dependencies.
    comment by kamranjon · 2021-02-28 · in Actually Portable Executables
  14. You might also be interested in kilo: https://github.com/antirez/kilo
  15. ▲ 3
    Ask HN: What small C projects would you recommend for beginners?
    story by seanpackham · 2020-04-27 · 3 comments
  16. …fff [1] or slmenu [2][3], and kanban.bash [4] into my own little "agile" terminal IDE. [0] https://github.com/antirez/kilo [1] https://github.com/dylanaraps/fff [2] https://www.youtube.com/watch?v=SlJto75auCA [3]…
    comment by oso2k · 2020-02-28 · in Unix as IDE (2012)
  17. In the same vein there's kilo by antirez: https://github.com/antirez/kilo Edit: oops, yours is in assembly, so definitely not in the same vein :-p (except for both trying to be small!) Edit2: ... and, the article is about kilo. D'oh. This…
    comment by emmanueloga_ · 2019-08-04 · in Build Your Own Text Editor
  18. Well, it seems we've already skipped to kilo[1], so it'll have to be mega. 1: https://github.com/antirez/kilo
    comment by earenndil · 2019-03-24 · in GNU Nano 4.0
  19. https://github.com/antirez/kilo A text editor by the guy that made redis, in less than 1000 lines and a lot of comments.
    comment by rileyphone · 2018-03-07 · in A Tiny Wolfenstein-Like Software Engine
  20. …learn how to manipulate the terminal directly (rather than using a wrapper library like ncurses): https://github.com/antirez/kilo (A text editor in less than 1000 LOC with syntax highlight and search.)
    comment by _sdegutis · 2018-01-31 · in GRV – Git Repository Viewer
  21. It shouldn’t be too hard: [kilo]( https://github.com/antirez/kilo ), the editor on which this is partially based, is modeless. All of the modes are thus addons that I’ve built. You’d have to tweak a bit of the code to make it usable as a…
  22. Nice. Maybe kilo? https://github.com/antirez/kilo
  23. kilo.c code referenced in the tuturial if you're interested in compiling and hacking around. https://github.com/antirez/kilo/blob/master/kilo.c I wonder how mouse clicking and scrolling in editor works? Would love to make html/js/css for…
    comment by nojvek · 2017-04-06 · in Build Your Own Text Editor
  24. I'm teaching myself C (pure hobby) and I really liked these codebases: https://github.com/antirez/kilo https://github.com/meetecho/janus-gateway The obvious caveat here is that I have no idea what makes a good C codebase. What I liked in…
  25. …sudo apt-get install some_package sudo yum -y install some_package pacman -S some_package ... [1]: https://github.com/antirez/kilo [2]: https://github.com/skx/kilua
    comment by gkafkg8y8 · 2016-12-01 · in The Emacs dumper dispute
  26. …Not that either choice is better or worse just something I find an interesting distinction. [1] https://github.com/antirez/kilo
  27. ▲ 2
    Kilo: A text editor in less than 1000 LOC with syntax highlight and search
    story by okket · 2016-08-14 · 4 comments
  28. …with search feature, and customizable syntax highlighting for variable number of languages. https://github.com/antirez/kilo Lots of people have forked it and are actively making it their very own editor. Sure, none of them may ever take…
    comment by _vya7 · 2016-07-19 · in Vim GIFs
  29. ▲ 7
    Kilo: A text editor in less than 1000 LOC with syntax highlight and search in C
    story by cia48621793 · 2016-07-17 · 1 comment
  30. ▲ 1
    A text editor in less than 1000 LOC with syntax highlight and search
    story by sah2ed · 2016-07-12 · 1 comment
  31. ▲ 1
    Kilo: A text editor in less than 1000 LOC with syntax highlight and search
    story by obilgic · 2016-07-11 · 1 comment
  32. …and was written in just a few hours taking code from my other two projects, load81 and linenoise." https://github.com/antirez/kilo