J
James Harris
James Harris wrote:
vi has only *one* input mode. It also has *one* command mode. That's not
too many to manage.
Yes, I remember WordStar. If you think modes are bad, try embedded dot
commands!
I agree that vi(m) is hard to learn. But it's easy to use, and I think
that is the most important criterion.
*I* didn't say that it's hard to learn! I don't think it is. However I
would say it's harder than necessary - which IMV is important.
vi also has the command mode (or whatever its correct name is) after
typing a colon and vim, at least, has macro entry mode then there's ex
mode and search modes etc but they are not too bad.
The problem I have with the two modes you mention is they look the
same. The interface isn't manifest, if you like. Also, sometimes there
is a genuine need to continually change mode such as entering
characters with short - e.g. one or two - cursor movements between
them (though the dot command can help if what's being entered is the
same in each case).
In contrast, I was thinking that an editor could/should have only one
mode: text entry. There would still be Control-[a-z] and Control-[A-Z]
for other commands without changing mode. For example, even on a
keyboard with no cursor keys the cursor movements could be generated
with single Control-<key> combination and longer commands could be
entered by Control-<key><key> where the editor brings up a menu
between the two keys. IIRC Wordstar only brought up the menu if typing
was slowish so those who remembered the second key didn't need to see
the menu and those who couldn't remember the second key got the menu
as a prompt.
Come back Wordstar, all is forgiven. Well, almost all....
James