Time to End the vi/Emacs Debate
Tags: vi, emacs, editor, discuss
Published: 2018-03-18 12:46:12

---
title: Time to End the vi/Emacs Debate
published: true
description: If you still use Emacs, I feel for you. Perhaps it is time to give vi a try.
tags: vi, Emacs, editor, discuss
cover_image: https://farm5.staticflickr.com/4795/26004617487_7d3576151b_o.jpg
---
*I originally posted this [article](https://cacm.acm.org/blogs/blog-cacm/226034-time-to-end-the-vi-emacs-debate/fulltext) at BLOG@CACM.*

There has been a long-standing debate among programmers. It is as fierce as the Hatfields/McCoys, Jets/Sharks, and Michigan/Ohio State feuds. Programmers continue to argue over the best text editor: *[vi](https://en.wikipedia.org/wiki/Vi)* or *[Emacs](https://en.wikipedia.org/wiki/Emacs)*. For the past 42 years, programmers have [dug in](http://www.slate.com/articles/technology/bitwise/2014/05/oldest_software_rivalry_emacs_and_vi_two_text_editors_used_by_programmers.html) on either side, with practically no hope of switching. I must disclose that I have been using vi since 1987. I still remember my classmates arbitrarily picking vi or Emacs. I tried emacs back then and did not like it. Maybe I did not give it a fair chance? Well it is too late now. I am in the vi camp for life.

Now the developers have spoken. Stack Overflow just released its [2018 Developer Survey Results](https://insights.stackoverflow.com/survey/2018/?utm_source=Iterable&utm_medium=email&utm_campaign=dev-survey-2018-promotion). Vim, the improved version of vi, scored 25.8% in popularity, while Emacs scored a paltry 4.1%. That is a staggering difference. To further gauge popularity, I counted 22,582 questions tagged with vim and 15,667 questions tagged with Emacs on Stack Overflow. You could argue that fewer questions means higher usability. I interpret this as an indication of activity.

I know the Atom and Sublime Text editors are all the rage today. But what made vi appealing to me 30 years ago still holds true today. I really like the short, simple commands. I rarely need to take my hand off the keyboard. To delete a character, type ‘x’. To insert a character, type ‘i’. If you still type Ctrl+x, Ctrl+s to save a file, I do not think we can be friends. I like how my brain has been hardwired to vi. I probably cannot describe most of the vi commands to you, because using vi is like breathing: you just do it. [MIT](http://web.mit.edu/merolish/Public/vi-ref.pdf) and [Stanford](https://pangea.stanford.edu/computing/unix/editing/viquickref.pdf) each have nice little vi reference cards that fit on a single page. The [GNU Emacs](https://www.gnu.org/software/emacs/refcards/pdf/refcard.pdf) reference card is twice as long. Invoking the emacs editor requires three additional letters; those extra keystrokes add up over time. Finally, vi is a cool name. I have a cousin who goes by Vi. Have you ever met anyone named Emacs?

If you still use Emacs, I feel for you. Perhaps it is time to give vi a try. I consider myself lucky for picking vi from the start. You can try to convince me to use Emacs, but you will have an easier time convincing me to go back to Visual Basic.

Thanks for reading. 😃

*Follow me on Twitter [`@realEdwinTorres`](https://twitter.com/realEdwinTorres) for more programming tips and help.*

<sub><sup>Photo credit: enver uçarer, [link](https://www.freeimages.com/photo/far-from-love-1440211)</sup></sub>