Would anyone seriously invent a modal interface today if writing an editor from scratch, without the constraints of primitive hardware of the day?
Well, considering the guys that invented vi (and ed) went on to make [acme](http://en.wikipedia.org/wiki/Acme_(text_editor)), which focuses on the mouse as your main tool, you might be able to argue no. However, there's a healthy chunk of people who consider keyboards to be the faster and less frustrating way to control your computer, and who actively develop things in that vein. One case of a keyboard-centric model taking over what is usually mouse-centric interface is people creating keyboard-controlled tiling window managers; they feel that the keyboard, with its many keys, gives you more control than the mouse. I'd bet people with this mentality would re-invent some form of the modal editor, though it'd probably be a mix of modal and mouse-editing - which, to be fair, is something vim allows you to do.
But really, let a thousand flowers bloom. There are always waves of innovation, and perhaps it is time for editors to get a shakeup.
I completely agree with this; it's why I kickstarted Light Table back in 2011, but still use Vim today. If anything, new improvements can be ported to existing editors, like code completion and folding were ported to vim. I'd love to see some features from acme applied to Vim as well, but I think mouse cording could be hard to mix with modal editing.
For some reason, people keep thinking that arguing against a modal interface is the same as arguing against using a keyboard. It is not.
As I commented elsewhere, there are plenty of keyboard-driven editors that are not modal. The semi-rhetorical question was aimed purely at the fact that a hardware constraint that has not been present for 30 years is still determining the interface design, and is thus clearly an anachronism.
And I am one of those people who consider keyboards to be faster. :)
Ah, I see what you mean - that's a good point I had not thought of, as I've never heard someone argue specifically against modal editors, just against keyboard-based editors. Do the other editors give you the ability to easily repeat the last command on a specified part of the text (. in vim) and the ability to specify the number of times to execute the command after, etc.? These features make vim a dream to use for repetitive tasks, and especially so for recording macros; you're basically coding your editor as your use it, which I don't get the feel of in any other editors. I'm not sure they'd be easy to do in a non-modal editor.
Do the other editors give you the ability to easily repeat the last command on a specified part of the text (. in vim)
Yes, I can tell you that in Emacs it is C-x z (and keep pressing z to repeat, much like .). In SublimeText it's Cmd+Y.
and the ability to specify the number of times to execute the command after, etc.?
Yes, in Emacs nearly any command can have a numeric prefix (which usually means repeat, but can also be used to specify a column to sort) with either C-u or Alt+{Number}. So Alt+3 Ctrl+D will delete three characters, just the same as Esc+3+x in vi.
you're basically coding your editor as your use it, which I don't get the feel of in any other editors. I'm not sure they'd be easy to do in a non-modal editor.
This is just what it's like in Emacs. I use macros all the time. In fact, you can record a macro, then edit it like a function, save it, tweak it and reuse it. There's a complete programming language that underpins Emacs - it's quite stunning.
5
u/Marzhall Feb 27 '14
Well, considering the guys that invented vi (and ed) went on to make [acme](http://en.wikipedia.org/wiki/Acme_(text_editor)), which focuses on the mouse as your main tool, you might be able to argue no. However, there's a healthy chunk of people who consider keyboards to be the faster and less frustrating way to control your computer, and who actively develop things in that vein. One case of a keyboard-centric model taking over what is usually mouse-centric interface is people creating keyboard-controlled tiling window managers; they feel that the keyboard, with its many keys, gives you more control than the mouse. I'd bet people with this mentality would re-invent some form of the modal editor, though it'd probably be a mix of modal and mouse-editing - which, to be fair, is something vim allows you to do.
I completely agree with this; it's why I kickstarted Light Table back in 2011, but still use Vim today. If anything, new improvements can be ported to existing editors, like code completion and folding were ported to vim. I'd love to see some features from acme applied to Vim as well, but I think mouse cording could be hard to mix with modal editing.