From Vim to Emacs

2021-01-30

Emacs · Spacemacs · Vim

3 minutes

It’s been a year since I’ve transitioned, sort of, from Vim to Emacs, so I thought I’d write something about it.

Vim has been my primary editor of choice for many years. I think I started Vim around 2003 on a RedHat box writing x86 assembly. Ever since, throughout my working carrier, whether it’s on Windows, OSX, or Linux, it’s been always Vim for me. Yes, even on Windows where the experience is really not that good, I still use Vim. My config now is reasonably compact after all the changes it went through with the plugins that I’ve used all these years.

But around January of 2020, I stumbled upon a YouTube video about Org Mode. When I saw it, I thought it was fantastic. My wife has been doing bullet journaling for a while now so I’m a bit familiar with it and I thought it’s pretty much a bullet journaling plugin in an editor. I gave it a try.

I tried both Spacemacs and Doom Emacs and eventually settled with Spacemacs. Not sure why. Both are brilliant. My leader key in Vim is Space so the transition was not that difficult. Now, Org Mode has become an essential tool for me in my work. I don’t really code that much anymore so I spend more time in Org Mode now than in code. After a year -ish of Spacemacs usage, overall, my experience has been enjoyable. Mind you, I’ve only used it in Linux as my main system is Pop!_OS.

Some minor annoyances. First is the startup time. I never really thought much about it in Vim. You could say that I’ve been spoiled with Vim’s startup times that Spacemacs’ startup delay was a hard pill to swallow. It still is. At this time of writing, I’m on Emacs 26.3. I tried 27.1 which is supposed to be faster due to its native support for JSON parsing, but, while faster overall, still noticeably and annoyingly slow. Still, once I open Spacemacs, I rarely close it, or I’ve learned not to close it the way I use Vim so I’d say I can live with it.

Second is the s shortcut key. It’s not really against Spacemacs or anything but after a year of use, I still stumble with it more times than I like. You see, in Vim, my goto ‘replace’ shortcut is s by highlighting a word, or phrase, or a line, then pressing s to delete it while changing to edit mode at the same time. In Spacemacs, s is surround, not delete+edit. It’s probably going to take me more years to master this especially that I still use Vim from time to time.

Now, I still use Vim for quick edits, or, if I feel like it. It still has a special place in my heart. But for now, I look forward to more years of Emacs use.