First of all, I love vim. I have been using vim for a few years now and it has changed my perceptions of what an editor is capable of. I also love modes.
However I am thinking of switching and here is why:
I really like Xcode and it has emacs bindings. I use Mac OS X and it has emacs functionality in all text input fields. I hate using the mouse, and I think switching would make sense.
I'm also kind of tired of doing all my work in terminal windows: with Xcode I would have access to a great IDE, and a great rat-free editor (emacs).
Having said all this, I find emacs Meta keys approach a little uncomfortable, and a little daunting, plus I have spent a lot of time learning to do things in vim.
Should I switch? And if so has anyone else made this switch or used both vim and emacs and have an opinion about which they prefer and why?
Also for emacs users out there who have used Xcode, how good is the emacs implementation in Xcode? Worth the switch?
Emacs is easier to learn since it has a more natural interface (for users familiar with GUI-based text editors). Since Vim has different editing modes, beginners find it a little harder to learn.
Speed. Both VIM and Emacs are super fast, especially when compared to modern-day Electron GUI text editors (like Brackets and Atom). There are arguments against Emacs being slower than Vim but the differences are very insignificant. Emacs takes around 1-2 seconds at startup compared to the instant startup of Vim.
But if you're already accustomed to the Vim key commands, you may be discouraged from learning a whole new set of Emacs commands. That's why a group of Vim users got together and ported Vim key commands over to Emacs. In order to use the Vim key commands you just need to install Emacs and install the “evil” major mode.
Why can't you use both? Using Emacs doesn't mean you have to stop using Vim.
Benefits of learning and using both:
Disadvantages:
I see the advantages outweighing the disadvantages.
I use Emacs for Lisp code, and because I use Lisp for web development, I also stay in Emacs for CSS and Javascript and such. I use Vim for Ruby, Python, Perl, PHP, BASH, plaintext, and almost everything else. Both editors have strengths and weaknesses, but mostly both have strengths.
The only way to know if you like Vim or Emacs better is to invest time in both, so you can make an informed decision. Maybe you'll find that Emacs fits the way you think and work better, or maybe not. It's such a subjective thing that the only way to know is by trying.
Text editors aren't religions, and the free disk space in your brain is for all intents and purposes unlimited. So use both and enjoy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With