ArticleslgStudy

computer science

Editor war

Editor war is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Editor war rather than just read about it. In short: The editor war is the rivalry between users of the Emacs and vi (now usually Vim) text editors. The rivalry has become an enduring part of hacker culture and the free software community.

Editor war — main illustration
Editor war — illustration

Key takeaways

  • Editor war belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Editor war to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Editor war from memory before moving on to harder problems.

Reference excerpt

The editor war is the rivalry between users of the Emacs and vi (now usually Vim) text editors. The rivalry has become an enduring part of hacker culture and the free software community. The Emacs versus vi debate was one of the original "holy wars" conducted on Usenet groups. Since at least 1985, many flame wars have occurred between those insisting that their editor of choice is the paragon of editing perfection, and insulting the opposing group accordingly. Related battles have been fought over operating systems, programming languages, version control systems, and even source code indent style.

Background

As of 2020, both Emacs and vi can lay claim to being among the longest-lived application programs of all time, as well as being the two most commonly used text editors on Linux and Unix. Many operating systems, especially Linux and BSD derivatives, bundle multiple text editors with the operating system to cater to user demand. For example, a default installation of macOS contains ed, pico (nano before macOS Monterey 12.3), TextEdit, Vim, and Emacs (Mg replaces Emacs after macOS Catalina).

Humor

The Church of Emacs, formed by Emacs and the GNU Project's creator Richard Stallman, is a parody religion. While it refers to vi as the "editor of the beast" (vi-vi-vi being 6-6-6 in Roman numerals), it does not oppose the use of vi; rather, it calls proprietary software a case of anathema. ("Using a free version of vi is not a sin but a penance.") The Church of Emacs has its own newsgroup, alt.religion.emacs, that has posts purporting to support this belief system. Regarding vi's modal nature (a common point of frustration for new users), some Emacs users joke that vi has two modes – "beep repeatedly" and "break everything." vi users enjoy joking that Emacs's key-sequences induce carpal tunnel syndrome, or mentioning one of many satirical expansions of the acronym EMACS. These include "Escape Meta Alt Control Shift" (a jab at Emacs's reliance on modifier keys), "Eight Megabytes And Constantly Swapping" (in a time when that was a great amount of memory), "EMACS Makes Any Computer Slow" (a recursive acronym like those Stallman uses), or "Eventually Munches All Computer Storage" in reference to Emacs's high system resource requirements. Nonetheless, key bindings from both editors are found in many other contexts. GNU EMACS has been expanded to "Generally Not Used, Except by Middle-Aged Computer Scientists" referencing its most ardent fans and its declining usage among younger programmers in comparison to more graphically oriented editors such as Atom, BBEdit, Sublime Text, Kate, TextMate, Notepad++, and Visual Studio Code. As a poke at Emacs' creeping featurism, vi advocates have been known to describe Emacs as "a great operating system, lacking only a decent editor". Emacs advocates have been known to respond that the editor is actually very good, but the operating system could use improvement (referring to Emacs' famous lack of concurrency, which has now been added). A game among UNIX users, either to test the depth of an Emacs user's understanding of the editor or to poke fun at the complexity of Emacs, involved predicting what would happen if a user held down a modifier key (such as Ctrl or Alt) and typed their own name. This game humor originated with users of the older TECO editor, which was the implementation basis, via macros, of the original Emacs. Performing a Google search for "vim" will display "Did you mean: emacs", and performing a search for "emacs" will display "Did you mean: vim". In the web series A Murder at the End of the World, there is a scene referencing the editor wars where a character asks a woman if she uses Vi or Emacs.

See also Console war Browser wars Comparison of text editors

References

External links Results of an experiment comparing Vi and Emacs Comparing keystrokes Archived 2014-05-17 at the Wayback Machine per task Humor around Vi, Emacs and their comparisons Results of the Sucks-Rules-O-Meter for Vi and Emacs from comments made on the Web In the Church of Emacs "using a free version of vi is not a sin, it's a penance." Emacs offers Vi functionality, from the Emacs wiki Emacs Vs Vi, from WikiWikiWeb The Right Size for an Editor discussing vi and Emacs in relatively modern terms

Illustrations

Editor war: Richard Stallman appearing as St IGNU−cius, a saint in the Church of Emacs
Richard Stallman appearing as St IGNU−cius, a saint in the Church of Emacs

Worked examples

Example 1 — a first encounter with Editor war

Start with the simplest possible case. Write down what Editor war claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Editor war before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Editor war ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Editor war

In research
Editor war appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Editor war in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Editor war is common in secondary-school and first-year university syllabi. It links to neighbouring topics Emacs, Free software culture and documents, Hacker culture, so understanding it makes those chapters shorter.
In everyday life
Look for Editor war outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Editor war” →

How to study Editor war in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Editor war means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Editor war out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Editor war in simple terms?

The editor war is the rivalry between users of the Emacs and vi (now usually Vim) text editors. The rivalry has become an enduring part of hacker culture and the free software community.

Why does Editor war matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Editor war?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Editor war.

Tags

  • Emacs
  • Free software culture and documents
  • Hacker culture
  • Internet culture
  • Software wars
  • Text editors
  • Vi

Keep exploring