6 ms·
> What I am trying to say that vim is an effort of over half a century of good idea accumulation, putting lots of effort into being backward compatible. I wond
by amelius 6y ago
> What I am trying to say that vim is an effort of over half a century of good idea accumulation, putting lots of effort into being backward compatible.
I wonder what Vi(m) would be like if it were redesigned from scratch.
- StephenAmar 6y agoIsn't that what neovim is trying to do?
- BlackFingolfin 6y agoAFAIK it still tries to stay mostly compatible with regards to how it is controlled, doesn't it? So while the internals are perhaps new, the frontend is not. But I think Kakoune https://kakoune.org https://kakoune.org would fit the bill
- chongli 6y agoKakoune is definitely an attempt at redoing the vim concept from scratch. I spent a few weeks trying it out and attempting to get used to it. Ultimately, I came away from it feeling disappointed. I think the basic premise of multiple cursors editing as a preferred model (which is what Kakoune does) is flawed. Why? Because large-scale scale changes are the exception, not the rule. By emphasizing multiple cursors, Kakoune actively makes it harder to do the normal thing people do in a text editor: jump around a file and make specific edits to individual lines. Instead, a bunch of normal movement commands (such as forward and backward search) leave extra cursors in your wake, forcing you to press an extra key to dismiss them otherwise you'll get erroneous edits that might not even be visible from where you are in the buffer. This is not a good thing. The other basic premise that Kakoune addresses (that vim commands lack visual feedback) is not even an issue for experienced vim users who type commands quickly from muscle memory. The edits happen when the command finishes and you don't get distracted by intermediate results. For global substitution, you can always append the `c` flag to add a confirmation prompt to each substitution. That alone obviates much of the motivation for Kakoune's model.
- avbanks 6y agoIf you stuck with it long enough do you think the multiple cursors would have given you an increase in productivity over vim? Like maybe it has a high learning curve (like vim).
- chongli 6y agoI don't think so. I don't think vim was in any way lacking in productivity. I'm one of those weird people that actually really likes using plain vi though. I actually own the book [1] and I've read through it several times, trying to learn as much as I can about vi and ex commands. There's so much power there that a lot of vim plugins turn out to be unnecessary. Others have tried kakoune and really loved it. I don't understand it. I really tried to figure it out, I just don't grok it. [1] https://www.oreilly.com/library/view/learning-the-vi/9780596529833/ https://www.oreilly.com/library/view/learning-the-vi/9780596...
- jasone 6y agoI switched to kakoune from vim in early 2020, and I really like it (previously: emacs 1994-2004, vim 2004-2020). It's worth prefacing what follows by saying that I heavily relied on the visual selection features in vim. kakoune provides a limited orthogonal toolset that composes extremely well. After a week using kakoune I felt at least as confident with its command language as I did with vim's after years of use. Aside from a few vim plugins that were super helpful, I didn't miss anything after transitioning, except for the 'R' command (and to a lesser extent proper integration between the 'r' and '.' commands). I worried that kakoune's multiple selection paradigm wouldn't scale well, that it wouldn't be routinely useful, etc. On the contrary, I use multiple selections heavily, often as a more ergonomic alternative to recorded macros, constantly for rectangle-based operations (whether multi-line editing, indenting, ASCII art creation, whatever). Oh, for you tmux lovers out there, kakoune integrates amazingly well. All of its multi-window functionality directly uses tmux panes, with a server application (think emacs-server) tying everything together. In terms of ecosystem, vim is much richer. But kakoune is a practical, beautifully designed tool.
- 6y ago
- smabie 6y agoProbably something like spacemacs.
- smitty1e 6y agoEmacs + vim really are the peanut butter and chocolate of getting stuff done.
- smabie 6y agoI really want to give spacemacs a try, but unfortunately I've just been using traditional emacs for far too long. vi does seem to have a much better editing model than emacs. The tools Emacs has for buffer navigation and editing have always struct me as incredibly primitive.
- taude 6y agoI've recently blown away my several years old custom Emacs config and started over with vanilla Doom Emacs (it's supposedly a faster version of Spacemacs, but I don't really know, I just took a stab and grabbed one of them). I spent a weekend doing some VIM tutorials and writing down common key strokes of things I do all the time, and then on a Monday, it was all VIM navigation. A lot of your regular Emacs meta-stuff will still work, and for that, you can slowly start replacing with the spacebar-b key stroke for your buffer management, spacebar-p for projectile, etc.... Here's a couple of the videos I watched: 1) https://www.youtube.com/watch?v=dr_iBj91eeI https://www.youtube.com/watch?v=dr_iBj91eeI 2) I've only watched a couple of these for the topics I'm interested: https://www.youtube.com/watch?v=rCMh7srOqvw&list=PLhXZp00uXBk4np17N39WvB80zgxlZfVwj https://www.youtube.com/watch?v=rCMh7srOqvw&list=PLhXZp00uXB... 3) for common VIM, I went with this: https://thoughtbot.com/upcase/onramp-to-vim https://thoughtbot.com/upcase/onramp-to-vim 4) Recently, I found this guys short six-part series that gets you navigating around VIM fast, but he's an acquired taste: https://www.youtube.com/watch?v=H3o4l4GVLW0&list=PLm323Lc7iSW_wuxqmKx_xxNtJC_hJbQ7R https://www.youtube.com/watch?v=H3o4l4GVLW0&list=PLm323Lc7iS... There's still some things I like better about Emacs navigation and there's a lot I like about VIM navigation. I prefer Emacs crtl-a and ctrl-e for navigating to front and end of the line (instead of $ and ^, which is an awkward shift+number key on my keyboard). However, in Doom Emacs (likely Spacemacs too since I believe they both support Evil-mod) if you're in Insert Mode, most of your old Emacs navigation will still work, so this makes it a decent crutch for transitioning.
- boogies 6y agoI've been loving vis¹, a hybrid between traditional vi and sam², a text editor Rob Pike designed from close to scratch. (Edit) I learned vim a little bit over a year ago, switched to neovim soon after, tried kakuone for a few days and didn't like losing so much muscle memory because of the verb-noun order reversal, switched to vis a few months ago and don't plan to switch back. 1: https://github.com/martanne/vis https://github.com/martanne/vis 2: https://en.wikipedia.org/wiki/Sam_(text_editor) https://en.wikipedia.org/wiki/Sam_(text_editor), http://sam.cat-v.org/ http://sam.cat-v.org/
- yjftsjthsd-h 6y agovis comes to mind (https://github.com/martanne/vis https://github.com/martanne/vis), although perhaps something even more aggressively plugin-first would be even better
- haberman 6y agoI hear good things about https://kakoune.org/ https://kakoune.org/. But I have 20 years of muscle memory for vi keybindings, and they're well-established enough that you can even use them in other editors like VSCode. So I'm wary of training my fingers to do something else that only works in one editor.
- Symmetry 6y agoVi came about before CUA. If I was to design it nowadays I'd use 'c' for copy in normal mode, 'ctrl-c' for copy in insert mode, and keep that pattern as far as practical to ease the learning curve for people new to the editor.