11 ms·
I would personally recommend using vim bindings in emacs, as they are (in my opinion) easier to make sense of and more intuitive. However, I'm sure this book is
by vladharbuz 11y ago
I would personally recommend using vim bindings in emacs, as they are (in my opinion) easier to make sense of and more intuitive. However, I'm sure this book is a great resource for all the other stuff and it seems very well put-together.
- banachtarski 11y agoEvil user concurring.
- methehack 11y agospacemacs (includes evil) plug: https://github.com/syl20bnr/spacemacs https://github.com/syl20bnr/spacemacs Really great.
- vladharbuz 11y agoYep, that's what I use as well!
- 001spartan 11y agoI switched to using Spacemacs from vim a couple months ago. I find it's a huge boost to my productivity; letting me use vim modes/hotkeys that I'm used to, and adding the handy features that emacs and plugins can provide.
- _asummers 11y agoHN Discussion with a LOT of good comments regarding Spacemacs [0] [0] https://news.ycombinator.com/item?id=9394144 https://news.ycombinator.com/item?id=9394144
- SmirkingRevenge 11y agoSpacemacs is absolutely amazing. I've done the rounds with emacs - trying it vanilla and rolling my own config, or using the various pre-made configuration packages (prelude, emacs-live, starter-kit, etc), sometimes with evil, sometimes without, and nothing has ever come close to what they've pulled off with spacemacs.
- oahziur 11y agoLearning some basic emacs bindings before using vim bindings is still valuable to me. Sometimes I have to use emacs bindings to do things.
- brudgers 11y agoWhen considering a tool with which one will work for many hours a day and many days a month over the course of years, for some people it makes sense to use expressive power rather than initial ease of use as the primary criterion for choosing among alternative sets of bindings. In the case of a tool like Emacs, the user is always likely to encounter new alternative work flows or to invent them theirself. This is what Emacs offers as an alternative value to Vim's Unix philosophy based idea of doing one thing and only one thing well. There's nothing wrong with Vim, and nothing implicitly wrong with using Vim shortcuts in Emacs so long as one is aware of its Fortran in any language style limitations.
- TeMPOraL 11y agoIt isn't really about ease of learning - vim key bindings are just more internally consistent than Emacs ones. Even though I am a die-hard Emacs user, I like vim approach to keybindings better - because they're made to form a language of sorts.
- bryanlarsen 11y agoAgreed. I'm a 20+ year emacs user. A couple of years ago I switched to using the VI bindings (evil). It really is the best of both worlds. I was using VI regularly before the switch -- it was available on servers and co-workers machines, and emacs generally wasn't. (Well, maybe it was on some, but the customizations definitely weren't). Now I have much lower switching costs, gain the quick access of VI bindings, and the huge number of emacs plugins. win-win-win.
- mih 11y agoIntuitiveness is subjective. Take cursor movement for example. I understand now h,j,k,l is a remnant from historic keyboards, but when I started learning vim, I couldn't fathom why 'h' moves a cursor to left and 'l' to the right, though I got used to it eventually. The emacs 'C-f' for forward and 'C-b' for backward were definitely more intuitive. Of course, depending on the mode, some emacs commands can be cryptic and leave you with a painful pinky, but they were definitely more intuitive to me.
- kbutler 11y agohjkl is QWERTY-centric, and would be totally nonsensical to a user of a different keyboard layout, like Dvorak. C-f, C-b are English-centric, and would be totally nonsensical to a user of a different language. Intuitive is hard.
- jamesondh 11y agoHmm, maybe someone should invent keys with arrows on them! :P
- emacsfodder 11y agoThat just sounds silly.
- yarrel 11y agoIf you already know vi then keeping them as you move over to Emacs makes sense. Otherwise I'd recommend not doing this, as vi keybindings are an airbrake for productivity.
- lottin 11y agoKey bindings are totally a matter of personal preferences. I like Emacs-style bindings better. The only thing I think vi in my opinion does better is copying and deleting lines (yy, dd, p), which in Emacs is not so simple for such a common operation.
- rrmm 11y agoctrl-k ctrl-y ?
- lottin 11y agoNot quite the same. For instance, to duplicate a line in Emacs you have to go to the beginning of the line, kill it and then yank twice, and it doesn't even work always, particularly at the end of a buffer. In vi, it's just yyp. No corner cases.
- justinhj 11y agoI've been using emacs for a long time. When I duplicate a line I don't even know that I'm following the steps you mention, I just do it on autopilot. What I like most about emacs though is that I rarely have to do repetitive tasks because I can write a bit of lisp code to do them instead.
- fsck--off 11y agoOr you can go to the beginning of the line, press Control-space (set mark), press Control-e (end of line), then Meta-W (copy), and Control-y (paste).
- vithlani 11y agoOr you could use this: https://github.com/sawan/emacs-config/blob/e7e7635ca93589eda217abd6e99ea1b818b458c0/emacs24.el#L290 https://github.com/sawan/emacs-config/blob/e7e7635ca93589eda... and bind it to a nice key binding.
- zarkone 11y ago
- guilhermeasg 11y agoI must ask you regular evil users this: how do you go about interacting with things (such as a REPL) with evil? I'm coming from vim and evil mode is great, but it feels somewhat clumsy to have to keep switching to insert mode to use a repl,doing stuff, going back to normal mode, then switching back to my code and editing it.
- bshanks 11y agoi use viper mode but with different keybindings (the most commonly used movement keys are under or near the home row, layed out geometrically): https://github.com/bshanks/viperre https://github.com/bshanks/viperre