Pirates and Ninjas: Emacs or Vi?
Mar 23rd, 2009 by sherri
In the great debates of Pirates vs. Ninjas and Emacs vs. Vi, there is one overarching question:
Do Pirates and Ninjas use Emacs or Vi?
Philosecurity has conducted countless hours of research, interviewed real ninjas and pirates in their natural environs, and launched intensive laboratory studies involving monkeys in order to bring you, our readers, the scientifically proven answers you demand.
After thousands of hours and monkey brains, our scientists have reached the following conclusions:
- Pirates use Emacs
- Ninjas Use Vi
Laboratory results showed that 92% of ninjas preferred vi, while fully 96% of pirates used emacs. In the wild, these numbers were even higher (94% and 97.5%, respectively).
Philosecurity’s expert team of scientists conducted an extensive genetic analysis and concluded that pirates were more genetically fit for the emacs programming environment, while ninjas were predisposed for survival in the vi environment. These genetic features can clearly be seen in the following photos of leading emacs and vi users:
![]() |
![]() |
Vi Creator Hand placement conceals poison dart |
Emacs Creator Note beard |
In order to better understand why, we gathered a team of anthropologists, programming experts, and behavioral psychiatrists to analyze the data. Our experts concluded that there are deep-seated psychological, cultural and evolutionary reasons that pirates use emacs and ninjas use vi.
Why Ninjas Use Vi
According to vi’s author Bill Joy, vi was designed to be usable over “a 300-baud modem,” on systems that could “just barely get the cursor off the bottom line.” This was in contrast to Emacs, which “was written for systems with blazing fiber-channel links and monster PDP-10’s.” (Jackson, Linux.com) Ninjas, who emerged in 15th century feudal Japan, would no doubt have appreciated vi’s functionality even across limited communications facilities and on older equipment.
Vi is designed to allow “users of the QWERTY keyboard to keep their fingers on the home row, thus requiring less movement to edit.” This would undoubtedly appeal to ninjas, who are “skilled in the art of stealth.” (Wikipedia)
Vi was originally designed to do a few things well, and avoid feature bloat. This also appealed to ninjas, who had to travel light. Over the centuries, ninja evolved increasingly specialized equipment, such as shobo rings to hit pressure points, metsubushi (small bombs) and poison shuriken (throwing weapons). “The assassination, espionage, and infiltration tasks of the ninja led to the development of specialized technology in concealable weapons and infiltration tools.”(Wikpedia) Similarly, over time vi has evolved offshoots such as vim with increasingly powerful features designed for the programming environment.
Vi has two modes:
- Command mode – Stealthily leap from line to line, over sentences, leaving no trace.
- Insert mode – Text everywhere
Ninjas have two modes:
- Stealth mode – Silently leap from tree to tree, over fences, leaving no trace
- Battle mode – Bodies everywhere
Why Pirates Use Emacs
Emacs was designed to be “highly customizable and includes a large number of bells and whistles, as it is essentially a Lisp programming language execution environment…” (Wikipedia)
Pirates are highly concerned with customization. What they lack in speed they make up for in panache: swanky flags, matching shoulder parrots and even customized limbs with fancy hooks and pegs. Pirates work hard to customize their ships, their costumes, their appendages and their speech. Emacs is traditionally slower than vi, but that wouldn’t be much concern for pirates, who are usually drunk and missing limbs anyway.
Pirates place themselves along trade routes and routinely raid passing ships, which gives them access to the most modern equipment. One of their overarching professional goals is to accumulate lots of valuable stuff. In the course of daily raids they acquire the most modern technology, which they can then use to run a more resource-intensive programming editor such as Emacs.
Conclusions
Based on extensive laboratory research on monkeys, as well as detailed analysis of wild pirate/ninja habitats, Phillosecurity’s team of experts has uncovered clear evidence that pirates use Emacs and ninjas use vi. The team also identified several cultural and evolutionary factors which have contributed to this trend.
Still, open questions remain. According to leading programming expert Gary Longsine, “Vampires use vi with an emacs plugin.” What editors will robots and space aliens prefer? Only time will tell.
| Sherri Davidoff |
| PGP-signed text: 2009-03-23 (current) |
| 2009-03-23 (version 0) |









Emacs is much better when used drunk!
You are my hero!
PS: Robots prefer pico/nano.
Well people have always considered me a ninja of sorts and I use Vi.
Where is the link to buy “Vi Ninjur” shirt!?
@Eric:
Wrong. Robots use ed.
Real programmers use a magnatized needle and a steady hand!
Not to spoil the gag, but in my experience, sys admins use vi and programmers abused by Comp Sci professors use EMACS (Eight Megs And Constantly Swapping).
St. Thomas Aquinas said that the prime attribute of goodness is existence. Since vi exists on even the most limited implementation of Linux / Unix, even with a rescue disk, it is the natural choice for Sys Admins. Back in the last century, when I was doing sys-admin work on DOS based IBM PCs, I frequently used edlin for the same reason. Eventually, I developed a boot floppy (Remember floppies?) with a better editor on it.
Programmers want to have a customized environment which extensively automates their frequent actions. From what I’ve been told, Emacs allows them to do this.
Everyone’s favorite editor is the one they used at their last job. (sigh)
parl
Well, I think I’ve got a strong argument against pirates using emacs – how would a pirate execute any emacs command having a hook instead of one of his hands
Emacs users watch them self from the outside. If they detect pattern that they need. They will implement it.
Vi users learn there environment and adapts. The strongest tool is to combine commands.
vi users = sysadms.
emacs users = programmers.
emacs has no limits.
Vi is not stealthy.
It beeps all the time…
VI actually has 3 modes (the third being “VISUAL”). I am sure Ninjas have another mode as well…
@the one who blogs: try M-x doctor when drunk. Hillarious, but like most drunken enternainments, not so great sober.
Also try M-x yow when drunk or stoned (emulates Zippy the Pinhead).
For realy weird entertainment: M-x psychoanalize-pinhead will turn the doctor loose on Zippy…
Yes, this pirate spends a lot of tube time with emacs and a glass of scotch. Probably not stealthy, but much more fun!
Wow. That post made my night. Funny as hell, yet so true.
-Adam
“VI actually has 3 modes (the third being “VISUAL”). I am sure Ninjas have another mode as well…”
@ Devin:
Right — ninjas often take on the guise of a commoner in order to walk unnoticed through marketplaces and villages. They can use this technique to sneak and steal — much like Vi’s Visual Mode.
Given the relative abundance of Pirates and Ninjas, I suppose that would make us Acme users Delta Force Operators and Rob Pike… Larry Vickers.
Ninjas and Pirates both use Emacs,
Mermaids use Vi,
Sorry guys, but yes: Vi is for girls.
Robots use sed.
Pirates use Eclipse.
John,
Did you really think you could fool me John? Mermaids don’t exist… I haven’t seen any at the looking glass anyways.
This is brilliant. Now I finally know why I’ve always sided with Ninjas all these years.. I’m a Vi user, a natural Ninja.
Also in the news: peasants use Notepad, slaves use M$ Visual Studio, commoners use M$ Word…
The REAL Ninja Pig can be seen here:
http://www.youtube.com/watch?v=O2zpr8FNfUw
…Fear the Pig…
i currently use leafpad, what does that make me?
some higher class of peasant?
( I am an ???? (artist), and wonder where that fits in in a world of ninjas (sys admin), pirates (programmers), robots, space aliens, etc )
today,vim can compare with ecmacs , but not vi
i think zombies are using visual studio
Ninjas use vi, Pirates use emacs, Samurai use eclipse, Crusaders use netbeans, Peasant use notepad, Slave use visual studio, but the Emperor & Queen use WORD! (come from his/her mouth and/or from his/her fingers
)
vikings and gladiators missed out ! lol