Are you quite certain in your facts? Because Vi is Emacs' younger brother, and Emacs uses such keys. In fact, the wikipedia page on emacs says that in 1972 Stallman added the CTRL-R keycombo to the old 'E' editor. Which suggests the CTRL key existedB.E wrote:Vi (made in 1976) still can do things that most (although I have not seen another one that can do everything Vi can do) editors can't do (or requires more time to accomplish the same goal). Most of Vi's key combinations are because of when it was made (back then keyboards didn't have CTRL, ALT, and Arrow Keys).
Vi fan ?
You're right. The ADM3A, the terminal which vi was written on, did have CTRL, and arrow keys. (They were h, j, k, and l.)JamesM wrote:Are you quite certain in your facts? Because Vi is Emacs' younger brother, and Emacs uses such keys. In fact, the wikipedia page on emacs says that in 1972 Stallman added the CTRL-R keycombo to the old 'E' editor. Which suggests the CTRL key existedB.E wrote:Vi (made in 1976) still can do things that most (although I have not seen another one that can do everything Vi can do) editors can't do (or requires more time to accomplish the same goal). Most of Vi's key combinations are because of when it was made (back then keyboards didn't have CTRL, ALT, and Arrow Keys).
C8H10N4O2 | #446691 | Trust the nodes.
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
Vi fan ... Oh Oh vi ....
A great feature of vi is that for most of the time your finger's remain in the centre of the keybord which definitely increases your typing speed ,unless u only use the thumb and index finger for typing you will find vi much faster and productive. bye for nuw
Several points, from my experience:
- Typing code means lots of AltGr-sequences, making finger placement not so important (as you keep moving over the whole keyboard anyways).
- Many coders I know taught themselves to type, not in a typist class but by trial & error. This usually results in a 6-to-8 fingers "coder's claw" style that doesn't much care for finger placement either.
- You don't have to switch windows between editor (code) and shell (make);
- it comes up really fast;
- while there are other solutions for the two points above, none of them is as ubiquitous (or easily / cheaply added) as vi.
Every good solution is obvious once you've found it.
Coder's claw, eh? Thats a good one... I'll have to remember that.Solar wrote: a 6-to-8 fingers "coder's claw"
The reason why I prefer nano (when I have to edit something on a remote host) over vi is that I don't like vi's default key combinations. I want shift+. to result in a colon instead of invoking an action or a menu.
How to design an editor for those with the coder's claw? An editor which is easy to learn, predictable and efficient to use.
When I'm in a GUI environment I usually use Kate (on Linux) and UltraEdit (on XP/Vista).
If debugging is the process of removing bugs, then programming must be the process of putting them in.
- Edsger W. Dijkstra
- Edsger W. Dijkstra
It does, when you are in insert mode...esa wrote:I want shift+. to result in a colon instead of invoking an action or a menu.
You don't. That typing style was aquired while typing in "standard" editors / environments, and thus works well in "standard" environments. It would be pretty stupid to "design" an editor for it, as it would be confusing and unpredictable for someone with ten-finger-typing, or a different "flavor" of coder's claw. (I use 8 fingers, my buddy uses 6, another guy I know uses 5...)How to design an editor for those with the coder's claw?
Cross-platform, free, accepted by your company's security department, ...An editor which is easy to learn, predictable and efficient to use.
Every good solution is obvious once you've found it.
A better way to phrase... or actually a better way to say what I really wanted to say was that those modes get in my way. I guess I'm just not used to them at all. I rarely have to use systems that don't have anything else than vi installed and when possible I usually use some other editor (like nano) that I'm used to because I just need to get the job done fast.Solar wrote: It does, when you are in insert mode...
So... because there is no single specification for the coder's claw the only way we can create an editor which would be compatible with the way coder's write would be to create an editor which allows free and full customization, right?Solar wrote: You don't.
Life is hard. Tell me if you ever find such an editor...Solar wrote:Cross-platform, free, accepted by your company's security department, ...esa wrote:An editor which is easy to learn, predictable and efficient to use.
If debugging is the process of removing bugs, then programming must be the process of putting them in.
- Edsger W. Dijkstra
- Edsger W. Dijkstra
Or the old motto: ":break_stuff ESC :break_more_stuff"esa wrote:A better way to phrase... or actually a better way to say what I really wanted to say was that those modes get in my way. I guess I'm just not used to them at all. I rarely have to use systems that don't have anything else than vi installed and when possible I usually use some other editor (like nano) that I'm used to because I just need to get the job done fast.Solar wrote: It does, when you are in insert mode...
Well like anything I think a better solution would be to do a survey of typing styles rather than base work on pure guesses...So... because there is no single specification for the coder's claw the only way we can create an editor which would be compatible with the way coder's write would be to create an editor which allows free and full customization, right?Solar wrote: You don't.
Vi? Emacs? Kate?Life is hard. Tell me if you ever find such an editor...Solar wrote:Cross-platform, free, accepted by your company's security department, ...esa wrote:An editor which is easy to learn, predictable and efficient to use.
Actually my perfect editor ever ever ever would be Kate with emacs bindings.
Pure heaven!
Scratch Kate, it's not cross-platform (unless you really feel like installing KDE on Windows or a HP-UX...) or accepted by every other security department.JamesM wrote:Vi? Emacs? Kate?esa wrote:Life is hard. Tell me if you ever find such an editor...Solar wrote: Cross-platform, free, accepted by your company's security department, ...
There's a reason why such dinosaurs as emacs and vi(m) are still around. They have severe shortcomings, which are a direct result of the limited demands they make on their environments - which in turn enables them to be ubiquituous, whereas Kate, UltraEdit and their ilk are not.
Every good solution is obvious once you've found it.
My perfect editor would be the handwriting recognition that I already use on my mobile phone, on a desktop scale. That is to say, a tablet PC. It's natural, it works for all people, it's faster than voice recognition, and you can draw cool squigly lines and stuff.
Now why didn't that take off?
pcmattman (if you read this): What do you think of your tablet PC?
Now why didn't that take off?
pcmattman (if you read this): What do you think of your tablet PC?
Personal example.Yayyak wrote:My perfect editor would be the handwriting recognition that I already use on my mobile phone, on a desktop scale. [...] Now why didn't that take off?
My handwriting sucks. It takes me much longer to write something than to type something, and it is much more uncomfortable (cramps, writer's wart, ...).
And I can't really imagine any handwriting recognition will do well trying to tell {, [ and ( apart in my handwriting...
Every good solution is obvious once you've found it.
l used both of vi and emacs for a period. And now vi is my first choice.
vi do editing works incredibly fast.
emacs integrated many things I don't need. It's better to integrate everything into an editor(then it becomes an IDE) on a console-only box or an old-fashioned 15' monitor. With a larger screen and GUI, all l need is to start a new terminal in corner or in a new vdesktop. It's faster to switch back and forth between them than to remember those fascinating keybinds.
And l really dislike the brackets!
vi do editing works incredibly fast.
emacs integrated many things I don't need. It's better to integrate everything into an editor(then it becomes an IDE) on a console-only box or an old-fashioned 15' monitor. With a larger screen and GUI, all l need is to start a new terminal in corner or in a new vdesktop. It's faster to switch back and forth between them than to remember those fascinating keybinds.
And l really dislike the brackets!
Welcome to 重庆