3 ms·
You sound like you would prefer Emacs over Vim.
by xedrac 4mo ago
You sound like you would prefer Emacs over Vim.
- packetlost 4mo agoI mostly agree with GP on stateful controls, but emacs has never clicked for me like vim did. Perhaps it's because switching between modes feels more natural than a simple toggle.
- allarm 4mo agoI have the same feeling and I use evil-mode in Emacs because of that. It's basically Vim inside of Emacs.
- packetlost 4mo agoI tried evil-mode for awhile, but it had too many edge cases that behave differently so I went back /shrug
- hirvi74 4mo agoI have my instance set up to enable/disable evil via a keybinding. That way, the edge cases can be handled smoothly. There is also a way to configure evil so that emacs keybindings work while in Insert mode, but not in Normal or Visual mode, if that matters at all.
- allarm 3mo agoCtrl-z is the default keybinding to temporarily disable evil-mode; there's no need for a separate keybinding.
- chuckadams 4mo agoWhereas I cut my teeth on emacs in the early 90's, so modal is what felt awkward. I wouldn't dislike vim's modes so much if it just had one combination insert/append mode that worked like every other editor out there (including a couple other modal editors I've used), but even after adding various hacks to my vimrc to help unify the two modes, I still stumble over the behavior differences in other places. I really like the composable shorthand of vim's command set though, even if the only one I have in muscle memory is <esc>:wq
- packetlost 4mo agoHonestly, there are more "modern" editors with even more intuitive flows. Helix being one. I think the ideal editor for me would be something like a mix of Helix's shortcuts with structural regexp like in vis.
- deleted 4mo ago[deleted]
- xedrac 4mo agoI tried Helix for a few weeks and found it to be less efficient overall. Now granted it's hardly fair to compare 3 weeks to 20 years, so maybe with more time I might change my mind. I really missed vim's . key to repeat the last command for example. I think the learning curve for Helix is probably better than Vim, so if you haven't learned vim, it might be worth it. The other challenge though is the ubiquitous nature of vim and vim emulation.
- JadeNB 4mo ago> I wouldn't dislike vim's modes so much if it just had one combination insert/append mode that worked like every other editor out there (including a couple other modal editors I've used), but even after adding various hacks to my vimrc to help unify the two modes, I still stumble over the behavior differences in other places. To be fair, for most values of "every other editor out there," they came after vi (if not after vim), so it's not like vi was discarding existing wisdom.
- chuckadams 4mo agoFor sure, I'm saying that vi stuck with its design rather than follow the trend of other modal editors that converged on one insert mode, and so did its follow-ups like vim. I just tried out helix and I'm really liking the features like its single insert mode. Still taking some getting used to, since it's selection-first, not command-first, so `dd` just deletes two chars and not the line. And shift-V doesn't select lines... grr.
- JdeBP 4mo ago
- dantillberg 4mo agoEmacs key sequences are similarly stateful, and GP may hate that just as much, even if the state is temporary. For my part, in emacs I would often try ctrl-x-s to save, but miss the x. When I repeat the attempt, emacs register the complete but unknown key sequence ctrl-s-x followed by the start of a new key sequence with ctrl-s. I consider this similarly stateful because the behavior of "ctrl-s" changes entirely depending on what keystroke (if any) preceded it.
- jerf 4mo agoI don't like that aspect of emacs, but if you are a heavy-duty editor user it becomes difficult to arrange a consistent set of emacs shortcuts that aren't modal that don't conflict with anything else, because there's so many things you might want to do and so many pre-existing keyboard shortcuts that you can conflict with, not just in emacs but in your window manager. As a simple for-instance, I've got four or five keyboard shortcuts I added in the last year for dealing with the Claude windows in emacs that I've been using (the package defines a couple dozen, it's just about five I use a lot), and I didn't even try to figure out how to make them anything other than "C-c c $something" because it's hard to find somewhere they can go in any sort of pattern that makes any sense and doesn't conflict with anything. Fortunately most Unix window managers seem to leave the Windows key alone, but of course if I try to bring that to Windows it would fail miserably. I did remap my heaviest hitters a long time ago to single strokes, though. Most notably, start macro, end macro, and replay macro all got coveted non-modal shortcuts.