Fundamentals 5 min read

What a BASIC‑Written Vi Looks Like

Lee Tusman recreated the classic Vi editor in a few hundred lines of Yabasic, building a minimal, 80‑character‑wide text editor that can open, create, and save files, while reflecting on his artistic background, motivations, and future enhancements.

21CTO
21CTO
21CTO
What a BASIC‑Written Vi Looks Like

To celebrate Vi’s 50th anniversary, Lee Tusman built a Vi clone using Yabasic, an open‑source BASIC interpreter for Unix and Windows, writing only a few hundred lines of code.

“For a modern BASIC language it’s surprisingly fun to use,” Tusman said.

Tusman is not a professional programmer; his background is in art and he only began exploring BASIC in 2025, specifically the Yabasic interpreter.

Inspired by text‑based games such as Offpunk and a desire to try something unconventional, he wondered how difficult it would be to implement a very simple editor with the smallest possible set of Vim commands.

Using Yabasic, he first created a blank editing screen, then added basic commands. Within a short time the editor could open files, create new ones, and save changes. The implementation deliberately omits line‑wrap and limits lines to 80 characters, but the GitHub repository provides a runnable program that reproduces many of Vi’s historically obscure shortcuts.

“I’ve been using Neovim (formerly Vim) for years. I’ve never written a text editor before, but I thought trying to implement one might be fun.”

Tusman acknowledges that the current version lacks many features, such as line‑number display and a cross‑platform solution for screen‑scaling errors, and he may add them selectively in future forks.

He describes the clone as the best BASIC‑based Vi implementation he has found and notes that the code is in the public domain, inviting other BASIC enthusiasts to fork and extend it.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Open Sourcetext editorViBASICYabasic
21CTO
Written by

21CTO

21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.