4 ms·
Additionally, emacs will filter undo/redo’s to changes within a region. If you select a region (no new command to learn) and use undo/redo, it will only perfor
by onedognight 4y ago
Additionally, emacs will filter undo/redo’s to changes within a region. If you select a region (no new command to learn) and use undo/redo, it will only perform those that affect text completely within the region. This is a superpower that delights me each time use it.
- nickcw 4y agoI did not know this, despite having used emacs for > 20 years - thank you!
- randlet 4y agoYes! Having regional undo is super useful sometimes. I switched from emacs to vim a long time ago, but still miss this feature (although not enough to go searching to find an equivalent vim plug in I guess). Lazy web?
- _huayra_ 4y agoWell if you want to return to Emacs, I can attest as a former long-time vim user that the emulation layers for vim modes in Emacs are fantastic! They're really the only good part of vim, as the configuration language was always a bit less desirable than elisp, imo.
- randlet 4y agoI've tried in past but always found the vim modes to be a bit lacking. My last attempt was probably 6 or 7 years ago though so maybe worth another shot!
- comfypotato 4y agoEvil mode is the modern standard I believe. Not a user myself, but I hear good things.
- fiddlerwoaroof 4y agoI ported my vim configuration to Evil Mode seven years ago and haven’t looked back. Evil Mode is the best done vi emulation layer I’ve seen and I think it even improves on vim in at least one area (the behavior of `I` in visual line mode).
- _huayra_ 4y agoThere is a very opinionated and batteries-included "Vim-y" Emacs called Doom [0]. A decent way to approach this if you don't want to start writing elisp outta the gate to have fancy editor features is to learn enough of the Doom config to tweak it to your liking, then add some elisp customization in as needed. I personally use this approach, usually cribbing config and elisp tweaks from the top contributors' configs. The Evil layer that Doom and most everyone seems to use for Vim modes works really well, and has a lot of ways to tweak things (e.g. changing `j` to `gj` for going through line breaks in normal mode; I forgot what that setting is called...). There is something to be said by bootstrapping your config entirely from scratch instead of using a "config framework" like Doom, but that can be too daunting and end up preventing one from trying things out. [0] https://github.com/doomemacs/doomemacs https://github.com/doomemacs/doomemacs
- ilyt 4y agoI switched from Emacs to IDEA because IDE features are frankly unrivalled but I still think Emacs does the text editing part plainly better
- jerry1979 4y agoDo you know a way to keep the region selected after undoing so as to continually undo within the region?
- db48x 4y agoThat’s the default behavior; perhaps you have customized something that changed it.
- a_e_k 4y agoThat region based undo is fantastic and has saved my bacon so many times! I really wish more apps had it, though I shudder to think of the implementation complexity.