Lunduke
News • Science & Tech
The True History of vi (and vim)
How a broken pascal compiler, a 300 baud modem, and a 1970s terminal helped create the (in)famous text editor.
August 08, 2023
post photo preview

Earlier this week (August 3rd, 2023), Bram Moolenaar, creator and long-time maintainer of Vim passed away.  The following article -- originally published earlier this year -- has been updated to include a brief history of Vim.


Everyone who has spent any time with UNIX or Linux knows about vi — the ubiquitous text editor that seems to have existed since the dawn of time itself.

Likewise, there are better than even odds that the first time you ran vi (or vim, which is based on vi)… you got stuck and couldn’t figure out how to exit the gosh-darned program.

Don’t feel ashamed. It’s a right of passage.

Your first experience with vi / vim looked something like this. You know it’s true.

What follows is the story of that much loved — and much hated — text editor. Where it came from, who created it, how it was almost very different, and why on earth it is the way it is.

It all started with ed

As with so many stories in computer history, the tale of vi begins long before vi, itself, ever comes into existence.

Our story begins in August of 1969, at AT&T Bell Labs.

There, Ken Thompson was beginning work on what would become UNIX. At that time it was a barebones system, running on a PDP-7, consisting of only three little components: an assembler, a shell… and a simple text editor known as “ed”.

Ed, which is (obviously) short for “editor”, is a line-mode text editor — meaning you edit one line of text at a time. A process which can drive any person to the brink of madness.

Being a line editor, ed doesn’t look like much. So here’s a screenshot of the ed manpage.

Historical Side Note: The design of ed was inspired by QED (which is short for “Quick EDitor"“) — a similar line-mode text editor created for the Berkeley Time Sharing System in the mid-1960s — and was re-written for MULTICS (the precursor to UNIX) by Ken Thompson. So it seems natural that, when Thompson needed a basic text editor for UNIX… he would base it on the design of QED, which he was already so familiar with.

Ed quickly became the defacto line-mode text editor for UNIX — remaining a part of the POSIX standard to this very day.

A wild Pascal appears

A few years later, in 1975, Ken Thompson went to Berkeley (the University of California) and built a Pascal compiler for UNIX.

There, his Pascal compiler came to the attention of a student at UC Berkeley… Bill Joy. The man who would go on to create vi.

From Bill Joy’s 1999 interview with Linux Magazine:

“What happened is that Ken Thompson came to Berkeley and brought this broken Pascal system, and we got this summer job to fix it. While we were fixing it, we got frustrated with the editor we were using which was named ed. ed is certainly frustrating.”

As with so many stories in the advancement of software… work begins when a programmer gets frustrated with existing software.

“We got this code from a guy named George Coulouris at University College in London called em - Editor for Mortals - since only immortals could use ed to do anything. By the way, before that summer, we could only type in uppercase. That summer we got lowercase ROMs for our terminals. It was really exciting to finally use lowercase.”

Anyone who has used ed for any sizable project knows how frustrating it can be to use. While ed has many strengths (and is great for usage via shell scripts) editing large portions of text is not one of them.

Now, with inspiration from the “em” text editor, things really kicked into gear.

From the August 1984 issue of UNIX Review:

“So Chuck (Haley) and I looked at that and we hacked on em for a while, and eventually we ripped the stuff out of em and put some of it into what was then called en, which was really ed with some em features. Chuck would come in at night - we really didn't work exactly the same hours although we overlapped in the afternoon. I'd break the editor and he'd fix it and then he'd break it and I'd fix it. I got really big into writing manual pages, so I wrote manual pages for all the great features we were going to do but never implemented.”

Put simply… ed + em = en. Sort of.

Also, I love the whole “I wrote manual pages for all the great features we were going to do but never implemented” part. Been there!

Modems and Terminals and vi weirdness

Back to the 1999 Linux Magazine interview:

I don't know if there was an eo or an ep but finally there was ex. [laughter] I remember en but I don't know how it got to ex. So I had a terminal at home and a 300 baud modem so the cursor could move around and I just stayed up all night for a few months and wrote vi.”

ed… em… en… [eo… ep?]… ex… then, finally, vi.

That is how we got to vi. The family tree of vi, if you will.

Worth noting here that “vi” is short for “visual mode of ex”. Running “vi” is literally a shortcut for launching the “ex” text editor directly into the full screen “visual mode” instead of the default “line mode”

In fact, if you were already running ex, you could enter the “visual mode” by entering the vi command.

And, what’s that? Vi was programmed on a 300 baud modem?

Seriously. Considering a 300 baud modem is 1/4th the speed of a 1200 baud modem (which transmits text slower than most people can read it)… this explains much of the design of vi.

“It was really hard to do because you've got to remember that I was trying to make it usable over a 300 baud modem. That's also the reason you have all these funny commands. It just barely worked to use a screen editor over a modem. It was just barely fast enough.”

Here, Bill Joy compares the reasons behind the design differences between emacs and vi:

“The people doing Emacs were sitting in labs at MIT with what were essentially fibre-channel links to the host, in contemporary terms. They were working on a PDP-10, which was a huge machine by comparison, with infinitely fast screens.

So they could have funny commands with the screen shimmering and all that, and meanwhile, I'm sitting at home in sort of World War II surplus housing at Berkeley with a modem and a terminal that can just barely get the cursor off the bottom line.

It was a world that is now extinct. People don't know that vi was written for a world that doesn't exist anymore.

Short, single character commands in vi kept things usable even of that slow connection.

As Bill Joy put it, “vi was written for a world that doesn't exist anymore.”

While the hardware limitation of the 300 baud modem had a significant influence on the design of vi… arguably the terminal (and keyboard) being used by Bill Joy had an even bigger impact.

That terminal: the ADM-3A built by Lear Siegler.

The ADM-3A is the model of terminal that Bill Joy programmed ex visual mode (aka vi) on.

For example: Why does vi use H, J, K, and L for cursor movement? Because, on the ADM-3A, those keys doubled as the arrow keys.

The keyboard layout of the ADM-3A.

You’ll also note that the Escape key is where the Tab key is on most modern keyboard. That’s why Esc is the vi mode switching key… it was, on that keyboard, easy to hit without moving your left hand off of the home row.

And, despite common keyboard layouts no longer being like this, vi stayed this way.

Vi almost changed significantly

A fun little sidenote: Bill Joy almost added multi-window support and other features… but he didn’t have backups of his code. And, as is the way, he lost that code.

“I was in the process of adding multiwindows to vi when we installed our VAX, which would have been in December of '78. We didn't have any backups and the tape drive broke. I continued to work even without being able to do backups. And then the source code got scrunched and I didn't have a complete listing. I had almost rewritten all of the display code for windows, and that was when I gave up. After that, I went back to the previous version and just documented the code, finished the manual and closed it off. If that scrunch had not happened, vi would have multiple windows, and I might have put in some programmability - but I don't know.”

Yep. We were this close to vi being quite different in those early days.

But the source code got “scrunched”.

Which is a technical term. I think.

Vi… forever

In May of 1979, Bill Joy — who was also the driving force behind BSD — released the first public version of vi (the visual mode for the ex text editor) as part of the 2nd release of the Berkeley Software Distribution (2BSD).

While, at this point, BSD was not yet a full operating system — it was an archive of a few pieces of software for UNIX — this was the launching pad for what would become one of the most famous (and infamous) text editors ever created.

While vi may have initially only been distributed to a mere 75 people (as part of the 2BSD archive)… it would go on to become a standard of POSIX, distributed on nearly every UNIX-alike system for the last 40 years.

More likely than not, people will be struggling to escape from vi another 40 years into the future.

Heck. A million years from now only three things will remain: cockroaches, Hostess Twinkies, and vi.

All because Bill Joy used an ADM-3A terminal on a 300 baud connection to build a text editor to fix a broken Pascal compiler.

Not too darned shabby for a mode of a text editor written for a world that doesn't exist anymore.

The Story of Vim

As popular -- and historically significant -- as vi is... one of vi's clones is, arguably, even more widely used: Vim.  Linux users regularly vote for Vim as their favorite text editor (or, at least, one of their favorites).

The path from vi to Vim wound through Unix, Atari ST, and Amiga systems... and back again.

  • In 1987, a man named Tim Thompson created a vi clone (from scratch, with no code copied from vi) for the Atari ST.  He called it STEVIE (which stands for ST Editor for VI Enthusiasts.)
  • In 1988, STEVIE was ported to OS/2, Amiga, and UNIX by Tony Andrews.
  • Later in 1988, Bram Moolenaar took the source code for the Amiga port of STEVIE and began modifying it to meet his own needs.  The result was Vim (or "Vi IMitation").  Because it wasn't a fork or port of Vi... but an imitation.
  • Moolenaar would continue to work on Vim for the next few years, eventually making the first public release in 1991.

Eventually (in 1993), the "Vi IMitiation" name was changed to "Vi IMproved"... and Vim was ported to an incredible number of platforms -- from UNIX to DOS to Haiku.

And it still uses those same, crazy, vi default keys... inspired by the ADM-3A.

community logo
Join the Lunduke Community
To read more articles like this, sign up and join my community today
17
What else you may like…
Videos
Podcasts
Posts
Articles
The Wikipedia Donation Destroyer Chrome Extension

Blocks the Wikipedia "Donate!" popups. Displays the true financials of Wikipedia. Provides a "See if this page is available on Grokipedia" link.

https://github.com/BryanLunduke/Wikipedia-Donation-Destroyer

More from The Lunduke Journal:
https://lunduke.com/

00:19:40
January 04, 2026
Which Programming Languages are Most Used in GNOME?

C, Rust, Javascript, Vala, Python, & more are ranked by how widely used they are throughout the GNOME software ecosystem on Linux.

More from The Lunduke Journal:
https://lunduke.com/

00:13:50
January 03, 2026
Raspberry Pi Banned from Zohran Mamdani Inauguration

Smart Phones? Allowed. Other Single Board Computers? No problem.
But the Raspberry Pi (and Flipper Zero) are just too dangerous.

More from The Lunduke Journal:
https://lunduke.com/

00:10:41
November 22, 2023
The futility of Ad-Blockers

Ads are filling the entirety of the Web -- websites, podcasts, YouTube videos, etc. -- at an increasing rate. Prices for those ad placements are plummeting. Consumers are desperate to use ad-blockers to make the web palatable. Google (and others) are desperate to break and block ad-blockers. All of which results in... more ads and lower pay for creators.

It's a fascinatingly annoying cycle. And there's only one viable way out of it.

Looking for the Podcast RSS feed or other links? Check here:
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

The futility of Ad-Blockers
November 21, 2023
openSUSE says "No Lunduke allowed!"

Those in power with openSUSE make it clear they will not allow me anywhere near anything related to the openSUSE project. Ever. For any reason.

Well, that settles that, then! Guess I won't be contributing to openSUSE! 🤣

Looking for the Podcast RSS feed or other links?
https://lunduke.locals.com/post/4619051/lunduke-journal-link-central-tm

Give the gift of The Lunduke Journal:
https://lunduke.locals.com/post/4898317/give-the-gift-of-the-lunduke-journal

openSUSE says "No Lunduke allowed!"
September 13, 2023
"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044

This episode is free for all to enjoy and share.

Be sure to subscribe here at Lunduke.Locals.com to get all shows & articles (including interviews with other amazing nerds).

"Andreas Kling creator of Serenity OS & Ladybird Web Browser" - Lunduke’s Big Tech Show - September 13th, 2023 - Ep 044

Many of us on the Lunduke Forum have been lamenting the loss of nerdy hobby content from Bryan.

Well, I got tired of complaining, and decided I’m just going to do it myself.

Here is the schedule which will repeat each week:

Tuesday: 20:30GMT - 22:30GMT – The Old Computer Nerd Show - I’ll do something completely computer-nerdy. It could be tinkering with my Atari 130XE, it could be learning a new computer language, it could be hacking my linux system, it could be playing around with my Turnkey System 360 mainframe. Tune in to find out.

Thursday: 20:30GMT - 22:30GMT – The Old Scif-Fi Nerd - Each week, I’ll go through a piece of short fiction from Ray Bradbury, Poul Anderson, Jack Vance, or any one of the dozens of other legendary writers from the 1950s to the 1990s, and discuss the story I read from a psychological, philosophical, and socio-political perspective.

Saturday: 20:30GMT - 22:30GMT – The Old Philosophy Nerd - This will continue the weekly readings ...

placeholder
5 hours ago

Oh No!!!

I know I haven't looked at Stack Overflow in quite a while, but DAMN ... No One seems to use them now.

https://x.com/LundukeJournal/status/2008286068970250325

post photo preview
January 01, 2026
post photo preview
Top 5 Tech Stories of 2025 (According to Lunduke Journal's Viewers)
Gay software, Leftist Activists destroying computing, attacks on privacy, & more. Plus: Lunduke Journal had 14.9 Million views in December alone.

What follows are the top 5 most viewed Tech News stories, published by The Lunduke Journal, during 2025.

Presented in descending order of views received, starting with the most viewed.

[Links are to Substack, but all stories are freely available on several platforms.]

  1. Installing Linux Software Just Got More... Gay [Nov 24, 2025]

  2. Linus Torvalds Tells Google Dev His “Garbage Code” Should “Get Bent” [Aug 10, 2025]

  3. Leftist Activists Demand Removal of Ruby on Rails Founder, DHH [Sep 26, 2025]

  4. Microsoft’s Goal: Replace “Every Line of C” with Rust by 2030? [Dec 26, 2025]

  5. Use Firefox? Mozilla Says it Can Use Your Data However it Wants. [Feb 27, 2025]

And, just for the sake of posterity, here are the next most viewed stories, 5 through 10.

  1. Wikipedia Made $184 Million in 2025, Spent $3.4 Million on Hosting [Dec 5, 2025]

  2. Cloudflare Rewrote Their Core in Rust, Then Half of the Internet Went Down [Nov 19]

  3. Ubuntu’s Rust GNU Utils Replacement 17x Slower & Buggy [Sep 16]

  4. GNOME Foundation Discusses Refusing Funds from Framework Computer [Oct 17, 2025]

  5. Python Says Discriminatory DEI Policies More Important Than $1.5 Million Dollars [Oct 28]

Of those 10 stories… 4 of them were not reported on by any other major Tech News outlets. And 3 of the other stories were first reported by The Lunduke Journal (and then picked up by other journalists).

That’s… wild.

Worth Pondering

We know that The Lunduke Journal gets more social media traction and views than any other “Mainstream” Tech Journalism outlets (including the ones which claim to have “millions” of followers).

While we don’t know the current exact viewership numbers of the other major Tech Journalists out there, based on all available numbers it would appear that these are among the most viewed Tech News stories from any publisher.

Period.

Which means that this list of “Top Tech News of 2025” is about as close to definitive as we’re likely to get.

While we’re at it, for the sake of massive transparency, here are detailed statistics for The Lunduke Journal for last month. (Something the other big Tech News outlets would be terrified to reveal.)

Lunduke Journal Stats for December

Here’s some Lunduke Journal stats for December, 2025:

  • 14.9 Million views (or listens) during the last month (December).

  • 151,224 free subscribers (not including audio podcast feeds).

  • 2,196 new free subscribers on the primary platforms.

  • 342 shows, in total, in 2025.

  • $0.00 (zero) taken from any corporation.

December is, typically, the most quiet month for Tech Journalism. Fewer big stories. Lots of people on vacation. “View” numbers are, almost always, significantly lower than a typical month.

Despite that, The Lunduke Journal had a pretty stellar month in December of 2025. Second biggest month of the year (only slightly behind the previous month, which set multiple records), clocking in at just shy of 15 million “views”.

I’ll take it.

 

Total Free Subscribers also saw pretty decent growth, considering it was December (“the quiet month”), of over 2,000 new subscribers. Now topping 150,000.

 

A huge thank you, as always, to the amazing subscribers to The Lunduke Journal.

None of this work would be possible without you.

-Lunduke

Read full Article
December 28, 2025
Reminder: The $89 Lifetime Sub deal ends after New Years Eve

Woah!

The end of December is almost here!

That means the “$89 Lifetime Lunduke Journal Subscription” deal is about to end!

When the ball drops on New Years Eve, and the calendar clocks over to 2026, the Lifetime Subscription price goes back to normal.

So, you know, grab one before that darn ball drops! (Then check out all of the Lunduke Journal Subscriber Perks.)

Because that deal is re-DONK-u-lous.

-Lunduke

Read full Article
December 21, 2025
Lunduke's Nerdy Q&A, Lifetime Sub for $89

Two quick tidbits on this glorious Sunday:

Reminder: $89 Lifetime Subscriptions

Lifetime Subscriptions to The Lunduke Journal are currently discounted to $89. For life. Which is… insane. That’s less than 1/3rd of the regular price.

Monthly and Yearly subscriptions are 50% off. Which is also pretty darned snazzy.

Submit Questions for Lunduke’s Nerdy Q&A!

On Tuesday I will be recording a long-overdue episode of “Lunduke’s Nerdy Q&A”.

Got questions you’d like asked in the show? No guarantees, but I’ll get to as many as I can!

Retro computing. Current computer news. Ridiculous hypotheticals. Any question is fair game... just make sure it’s good and nerdy.

To make it simple for me, there are two ways you can submit questions for this week’s Q&A:

  1. Add a comment to this thread on Forum.Lunduke.com.

  2. Reply to this thread over on X.

  3. Ok. I lied.  There are three ways.  You can also reply to this post, right here, on Locals.

Note: Only Lunduke Journal subscribers can access to Forum.Lunduke.com. All of the details on how to gain access are on the Lunduke Journal Subscriber Perks page.

-Lunduke

Read full Article
See More
Available on mobile and TV devices
google store google store app store app store
google store google store app tv store app tv store amazon store amazon store roku store roku store
Powered by Locals