Minimum Viable Editor | Line Editor in C #1

Channel:
Subscribers:
5,840
Published on ● Video Link: https://www.youtube.com/watch?v=t4gXccB2M48



Duration: 0:00
506 views
41


Starting an ed clone as a "bootstrapped" line editor project.
I wanted to learn more about line editing historically, how the core of vim or other tools works, and if it's still useful as an editor or scripting tool today.

ed was probably written in assembly, with little to no headers or libraries.
I'm using C instead for some semblance of portability and an easier visual structure of the code, wanting to try some C23 features, and because I'm lazy.

Errata: ex is a program, not an extended mode of em (it is a non-visual mode of vi though!), that was a slip up.

Playlist:    • Line Editor (ed clone)  

Git repo:
https://codeberg.org/queso_fuego/lined
https://github.com/queso-fuego/lined

Commit after this video:
git checkout c431818ae0b98ebad790c5f1b33f25c9131e8505

Links:
https://en.wikipedia.org/wiki/Line_editor
https://man.cat-v.org/unix-1st/1/ed
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/ed.html
https://man.openbsd.org/ed.1
https://www.nokia.com/bell-labs/about/dennis-m-ritchie/qedman.pdf (QED manual)

Join the Community Discord: https://discord.gg/yKm4T89QFn

Contact: https://queso_fuego.codeberg.page/contact.html
Support: https://queso_fuego.codeberg.page/support.html

00:00:00 intro/overview
00:05:34 mkdir & makefile
00:09:23 Minimum Viable Editor (tm) from a heredoc
00:39:29 up next & outro

Music credits:
Beginning 2 - HoliznaCC0
https://holiznacc0.bandcamp.com/track/beginning-2

#texteditor #c23 #ed