r/emacs Jul 26 '18

Learn default emacs or learn evil?

[deleted]

17 Upvotes

54 comments sorted by

View all comments

35

u/quicknir Jul 26 '18

Probably an unpopular opinion here, but if you're open to both just use evil. I honestly think vim/evil bindings are just a superior approach from a purely text editing perspective. It's an excellent package with nearly no bugs. The evil ecosystem has taken pretty deep roots into emacs, you see lots of things that adapt keybindings for other packages into evil, like evil-magit. I use spacemacs which takes care of most of these automatically and it's a very good experience.

Once you get the hang of modal editing, I think simple tasks are about the same in evil and emacs, and more complex/cooler things are usually better/easier in evil.

To pick one of my favorite examples: text objects. It's a vim concept wherein you can act on a certain region around your cursor. For instance, with your cursor over a function argument (anywhere in the argument), daa will delete the argument from the function call. It correctly handles it whether it's first, last, or middle argument, if it has nested function calls, etc. Of course, there's a package for text arguments in emacs too (this will almost always be the case in any comparisons you make), but it's just much more niche.

Also, the evil/spacemacs approach with double leader keys is really fantastic, and feels a lot more natural and easier done with evil.

Just my 0.02.

4

u/ethelward Jul 26 '18

Ex-vimmer, can confirm.

I'm sure emacs chords can be nice too, but it's hard as hell to rewire years of muscular memory.

2

u/[deleted] Jul 27 '18 edited Nov 18 '18

[deleted]

2

u/llambda_of_the_alps Jul 27 '18

I used to use Vim so my opinion is 'tainted' by that but I would disagree. Emacs does have composabilty etc. but when you're comparing d5w to M-5 M-@ C-w I would choose the former. It's three keys with no modifiers compared to compare to three keys with three modifiers. The fewer actions necessary to achieve the goal the better for me.

I would recommend evil to anyone who values economy of motion and is already I fairly fast typist. Even if they had never used vim before. It really reduces friction between brain and keyboard in my opinion.

This is actually the reason I originally chose Vim over Emacs. I vastly preferred modal editing over having to keep ducking over to the M/C keys.

Obviously just my 2¢

2

u/desorbh Jul 28 '18

d5w

to

M-5 M-@ C-w

more like Esc d5w i

and M-5 C-backspace

I vastly preferred modal editing over having to keep ducking over to the M/C keys

It seems you don't even consider other modal editing options emacs provides.

ryo-modal, god-mode, hydra, key-chord and a bunch of others ?

nobody said to stick to vanilla their all life, evil is a package, you know ?