ARAZ GHOLAMI

WTF-IS: VIM

90% of what you need to survive in Vim Editor

Back in 1976, Bill Joy created Vi for the Unix operating system. The name comes from the first two letters of Visual, which makes sense. Before Vi, people used Ex, a line editor, which was itself an upgrade from an even older tool, Ed, built by Ken Thompson in 1971.

Why “Visual”? Because back then, being able to edit an entire document on screen, visually, was revolutionary. Ex let you edit one line at a time, but Vi brought the whole thing into view.

Then came Vim (short for Vi Improved). In 1988, Bram Moolenaar built Vim on top of Vi, adding better performance and more flexibility. Over time, it spread to more platforms beyond Unix. Today, you’ll find it pre-installed on most Unix-like systems, including Linux and BSD. As of this writing, the latest version is Vim 8.1.

Why is Vim So Popular?

  1. You Never Have to Leave the Keyboard
    Vim’s biggest selling point? You never have to touch the mouse. Everything, from basic typing to complex text manipulation, happens through keyboard shortcuts. Once you learn them, you’ll be faster than ever. But if you don’t invest the time, this same feature can be frustrating.
  2. It Works in the Terminal
    You’re SSH’d into a server on the other side of the world, say, in Germany. No graphical interface. No Sublime, no Atom. Just you, the terminal, and the text. Vim is one of the few editors that’s built for this situation. It thrives in environments where others can’t even run.
  3. Extensibility
    Vim can grow with you. For every task, there’s probably a plugin that makes it easier. With some setup, Vim can outperform even IDEs like PHPStorm.
  4. It’s Hardcore (and we love it)
    Let’s face it: some of us like using a tool that confuses others. There are simpler options, like Micro, which even supports mouse input. But there’s a certain satisfaction in using something more cryptic.

Bonus Info for the Curious

Getting Started with Vim

Vim works in three modes:

You move between these modes using just a few keystrokes:

Useful Commands

Here are some basics that will get you through most situations:

Learn More

You’ve now got 90% of what you need to survive in Vim. If you want to go deeper:

That’s it! Once you get the hang of it, Vim becomes less of a mystery and more of a powerful tool, one you might even love.

Araz Gholami - 18 July 2020 Share: arazgholami.com/wtf-is-vim.raw