2 ms·
> I used vi and vim for about 25 years before switching to Emacs. Then maybe you can help:) I've tried, multiple times, to switch to emacs. And every time, I
by yjftsjthsd-h 7y ago
> I used vi and vim for about 25 years before switching to Emacs.
Then maybe you can help:) I've tried, multiple times, to switch to emacs. And every time, I get stuck, because vim keybindings are so wired in to my muscle memory now, and even the broader interactions are hard to adopt (i.e., I expect to get a command prompt by escaping to command mode and then typing ":", and then all commands are available). Is there any trick that you found helpful to overcome all the inertia?
- elteto 7y agoYou must have heard of evil by now... but if not check it out. It's a vim emulation layer for Emacs.
- yjftsjthsd-h 7y agoYeah, I tried evil (and variants that used it), but the slight edge cases where it didn't quite work like vim messed me up enough to undermine its usefulness. Both in that I actually used things that it didn't provide, and in that hitting some places where it didn't work cast uncertainty over the whole thing: In vim, if I know a keybinding or command, it will work; in evil there was always a moment of "will that work... okay, that does work" that broke my flow (or worse, "okay, let me just... oh, evil doesn't do that, now what?").
- pmoriarty 7y agoWith the exception of certain corner cases, when evil-mode doesn't exactly emulate vim it's considered a bug and should be reported as such. I have run in to some of those corner cases myself, and had to ask myself whether they were worth giving up Emacs and evil for, and the answer for me that was that they weren't. Both are way too useful for me, and an occasional hiccup here and there isn't worth giving them up and going back to vim. Also, I don't run in to those corner cases very often. Maybe 95% percent or more of the vim commands and features I use myself are completely emulated by evil without issues. One other thing to ask yourself when running in to such cases is whether they're really an incompleteness in evil's vim emulation or maybe just a lack of a keybinding or some function that you could easily write yourself (if you know eLisp). It's taken some elbow grease, but I've ironed out a lot of the wrinkles such as missing vim-like keybindings in modes that don't come with them by default (others use spacemacs or doom for this).
- pmoriarty 7y agoI'd recommend using evil-mode. It'll give you the stock vim keystrokes and the command prompt (ie. what you get when you press the : key). I was tempted to say "just use evil-mode", but it's really not "just" a matter of using it. evil-mode doesn't get you everything, as many Emacs modes just don't have vim-like bindings, and you'll either need to rebind them all yourself to something that makes sense for you (which is what I did, and I recommend creating lots of hydras to help you remember everything that's available), or you can use something like Spacemacs or Doom which will set up sane defaults for a lot of modes. I've never used Spacemacs or Doom myself, but I've heard good things about both.. and bad things about Spacemacs, and how Doom is supposed to be an improvement on Spacemacs.. but as I've not used either I can't really comment on how accurate those claims are. I'd suggest doing your own research on those, or maybe someone here can comment on them. Also, I'd recommend joining #evil-mode on the Frenode IRC network, the Emacs subreddit, and the Emacs StackExchange. You can get all of your questions answered there, and learn a ton about Emacs by reading these.
- yjftsjthsd-h 7y agoYeah, IIRC I've tried Spacemacs and Doom... I think I managed to hit things that they didn't implement... oh, I know: I've gotten the (bad?) habit of going to normal mode by hitting ctrl-c rather than escape, and I think evil didn't handle that. (To be fair: It works in (neo)vim, but ctrl-c to get to normal mode doesn't work nicely in other vi versions either, which is why I suspect it's a bad habit and/or me abusing some misfeature that wasn't intended to be used that way.) Perhaps I should take another swing at it and see if I can't deal with the quirks...
- wadkar 7y agoTry something like spacemacs[1] maybe and use it only for one specific task like org-mode[2]. That way, vim is still your daily driver, but you get to play with lisp/emacs on something very cool like org-mode! Then, you can slowly try to switch one thing at a time, for example start editing all Dockerfiles in spacemacs, or maybe do that one hello-world project/app in clojure/phoenix using spacemacs. See how you like it, tweak it a bit. Finally, decide on using it as a daily driver for a new project and stick with it. It will grow on you. [1] https://www.spacemacs.org/ https://www.spacemacs.org/ [2] https://orgmode.org/ https://orgmode.org/
- yjftsjthsd-h 7y agoOh, that's a good idea:) And org-mode is compelling enough to entice me in... Thanks, I think I'll try that:)
- ralls_ebfe 7y agoI got into emacs because of org-mode. Transitioned from vim to spacemacs with evil-mode. Can recommend. :)