E.3. Tastes Great, Less Filling

We can't discuss vi as part of UNIX culture without acknowledging what is perhaps the longest running debate in the UNIX community,[2] vi versus emacs.

[2] OK, it's really a religious war, but we're trying to be nice. (The other religious war, BSD vs. System V, was settled by POSIX. System V won, although BSD received significant concessions. )

Discussions about which is better have cropped up on comp.editors (and other newsgroups) for years and years. You will find summaries of some of these discussions in the ftp archives described above. You will find pointers to more recent versions on the web pages.

Some of the better arguments in favor of vi are:

  • vi is available on every UNIX system. If you are installing systems, or moving from system to system, you might have to use vi anyway.

  • You can usually keep your fingers on the home row of the keyboard. This is a big plus for touch typists.

  • Commands are one (or sometimes two) regular characters; they are much easier to type than the all of the control- and meta-characters that emacs requires.

  • vi is generally smaller and less resource intensive than emacs. Startup times are appreciably faster, sometimes up to a factor of 10.

  • Now that the vi clones have added features like incremental searching, multiple windows and buffers, GUI interfaces, syntax highlighting and smart indenting, and programmability via ...

Get Learning the vi Editor, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.