
"A few hundred lines of Yabasic recreate just enough to keep modal editing muscle memory alive"
"It only took a few hundred lines of Yabasic code to get a minimal blank page working before Tusman began adding simple commands. Before long, the editor had reached the point where it was possible to open a file, start a new one, and save."
"There's no wrapping in Tusman's editor - 80 characters is the limit - but fire up the code from the GitHub repository, and a reasonable simulacrum of the venerable editor, along with a lot of its sometimes esoteric shortcuts, runs up."
"I've been using Neovim (and before that, Vim) for years and years. I've never made a text editor before. But I decided it could be fun to try to implement my own."
A Yabasic program written in BASIC recreates a minimal Vi-style modal text editor. The project uses a few hundred lines of Yabasic code to produce a blank editing page, then adds commands to open existing files, create new files, and save changes. The editor supports a fixed 80-character line limit without text wrapping. After reaching basic functionality, the editor enabled direct opening and editing of the program’s own source code. The resulting tool runs from a GitHub repository and provides a reasonable imitation of Vi, including many of its more unusual shortcuts.
Read at theregister
Unable to calculate read time
Collection
[
|
...
]