3 ms·
> In my opinion, Vim's normal, insert and command modes (the main ones) are very beneficial. You mean, compared to not having the modes, as is true for all mod
by lutusp 14y ago
> In my opinion, Vim's normal, insert and command modes (the main ones) are very beneficial.
You mean, compared to not having the modes, as is true for all modern editors? In a normal editor, to put it in the simplest terms, I enter content with the letter keys, I delete content with the backspace key, and I navigate with the arrow keys -- no extra keystrokes required. If we count keystrokes, to put this plainly, a modern editor is much more efficient, and requires much less time to learn. If we count the time required to learn how to use an editor from a state of perfect ignorance, a modern editor is clearly more efficient.
When I designed Apple Writer in the late 1970s, I knew about vi and I knew what I didn't like about it. Even then, it was accommodating a nonexistent roll of paper, and its superfluous keystrokes were my primary target. I designed an editor that didn't follow vi's model, didn't have modes, and every editor since then has done likewise (except Vim).
If someone told me in 1977 that, 35 years later and counting, people would still be using vi's descendant with its modes unchanged, and explaining how beneficial it is, I would have laughed out loud.
- johncoltrane 14y agoWell, there's nothing stopping you from entering the content with the letter keys, deleting it with the backspace key and navigating with the arrow keys in any editor, Vi[m] included. If that's all you do when working with text, Vi[m]'s modes won't bug you at all. Stay in insert mode as long as you want: you can even use <C-o>… to execute normal mode commands while staying in insert mode or consider the command mode exactly as you would consider the menus of any GUI editor. But that's not all of what I do when editing text and I need more than those basics. What's special with Vi[m] is that it offers me modes that make it possible to do more advanced stuff or the same stuff in a smarter way with a very simple and easy to learn language. Do you always move character by character and line by line? How do you paste something 12 times? How do you delete a block of code? How do you type over the current word? How do you open a newline below the current one if you are somewhere in the middle? Don't you ever think "this task is too repetitive or involves too many steps, I'd like to do it more efficiently"? Because of its modality Vi[m] has you covered. In style, with a simple vocabulary and an expressive grammar while other normal editors only offer a comparatively smaller feature set and horrible Ctrl+Sift+Alt+Char combos. That's what makes Vim, and modality, special, in my opinion. And still extremelly useful, 30+ years after. But I may be wrong. The incredible productivity boost I had in the last 2 years may completely be a construct of my imagination.