11/20/2023 0 Comments Best plain text editor redditThat lets me use a mix of Emacs keys and Evil keys, with the two downsides: Emacs commands don't fit perfectly with modal editing, and it completely screws me up when I actually have to use vi/Vim because I expect things like C-e to take me to the end of a line. I've unbound all the CTRL bindings in Evil. It works (I do manage to write a fair bit of Lisp), but it's not ideal. I edit a lot of Lisp, and I just can't get used to Lispyville (I'm a paredit sort of guy), so I end up mixing Emacs/paredit sexp-based commands with Evil commands. Then there's the various text features that don't quite map to Evil. non-text modes just doesn't click for me, and I'll end up typing vi commands. Swapping back and forth between Emacs keybindings and vi keybindings in text vs. I've got the muscle memory from years of using vi. I know that works for some people, but it doesn't work for people like me. You might consider installing the which-key package as well. If you do decide to walk the path of Evil, do check out evil-collection which adds Evil keybindings to many of the major modes not covered by Evil itself.Īs far as resources go, bookmark the manual and print out a cheat sheet. The Evil maintainers have made it as painless as possible, but they can't completely get rid of all the pain. Don't get me wrong, Evil is great - I use it myself - but Emacs just wasn't designed for modal editing. Personally, I'd recommend against Evil mode if you're planning on switching completely to Emacs. Vim might have it beat, but not because Emacs is a bad editor - more because Vim is an amazing editor. That said, editing text in Emacs is fine and certainly preferable to the vast majority of editors out there. For an example of this, look at the cc-mode manual. Emacs can also very quickly swap in and out editing features (this is from minor modes). This means that while Vim might be better for editing plain old text, Emacs is very likely better at editing the particular type of file you're interested in (this is from major modes). I'd say that as far as plain text editing goes, Vim has Emacs beat.Įmacs has the advantage that it's rather easy to create or extend major and minor modes, so people have written tons of the things. You string together the keystrokes that say what you want to do and what you want to do it with. Vim has the advantage that it has composable commands. There are very powerful commands available, but if you aren't aware of them then they might as well not be there. ![]() Emacs is kinda like Vim in the sense that you have to internalize the commands and build up your muscle memory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |