


Notice what the vi/vim image is saying - it’s hardest to ramp up in the very, very beginning, and smooth sailing after that wall. Usually you want to get in insert mode or get out of it, and for that you press ‘i’ and ‘escape’, respectively.Īn image found on the Internet (sorry, I don’t know the attribution).
#Emacs vs vim how to
It’s got a sharp learning curve if you’re starting from nothing, but the bulk of that curve is crammed into the first few hours.įamously, people get stuck in Vim without knowing how to exit or ‘un-stuck’ themselves - the basis for a million jokes. How hard is Vim to learn? Not all that hard, as things go (way below, say, Spanish, or high school physics, or Dark Souls). It’s like a game once you’ve learned the keystrokes, it’s fun to glide around your file with a few taps of your keyboard. I open Vim in a terminal almost every time I want to edit a file, since it’s fast to load and snappy to use. I’m not giving you my take on the best editor for situations that don’t relate to this.
#Emacs vs vim code
I spend about half the time in my editor using it for code written in a language like JavaScript or Go, and the other half editing text. For most use cases, their functionality overlaps. If you’re at an advanced place where only one or the other can meet your needs, then you have your answer. At the risk of misrepresenting the capabilities of both, I’ll ‘pick sides’ and give you an opinionated take on when you should use Vim or Emacs. If people tell you different products are equally good at the same thing, then you can’t choose between them. Note that Vim stands for “vi improved” and can be substituted for vi in any context where that matters (such as Google searches, where vi vs. Vim left such an outsized impression on me that I forgot about my earlier Emacs phase and had to correct this paragraph, to give you a sense of how much I used it. I started with Emacs years ago, switched to Vim for most of my startup career, and eventually switched back to Emacs. If you want an editor-specific guide, I wrote one for Emacs and one for Vim. In this essay, I’ll dive into what should guide your choice. When I first wrote this article (last edited 10/23/21), I couldn’t find what I wanted: a guide, exclusively about Vim and Emacs, that would help a person choose between them. “Misery” by Gillie Rhodes available under a Creative Commons license
