I agree that hjkl is not the most intuitive, it took me a while to use that instead of the arrow keys. That being said, on a "standard" keyboard, the arrow keys are always further away from the home rows, and so it's annoying to always move your hands. So I disagree that it's not ergonomic.
Of course if you can configure your keyboard as you wish it's a different question; you might move the arrow keys around the home rows if you want. But then the deeper you go into Vim the less you use hjkl anyway...
The choice is not binary between hjkl and arrow keys.
It could be (non-exhaustive list):
jkl; - actual resting home row position
ijkl - no hand movement, no pinky usage (also mirrors arrows and controls that are structured that way outside of your keyboard)
asdf - right hand resting home row position
esdf - right hand, no hand movement, no pinky (gamers used to wasd would love it)
Having navigation single key shift away from resting position has no upsides that I can see. It takes premium home row space, except it fits only 3/4. So you either shift your hand all the time, or your index finger is now busy with both right and down and is moving laterally.
And if it's not actually important, why is it on home row and not say bottom row: m,./ - you'd just curl your fingers and access movement without shifting of your hand.
So the explanation today is nothing other than "Our ancestors did it this way and so shall you, youngster. Scientific basis is overrated and we are not trying new things.".
You do realize that the vim keybinding is inherited from vi? And that vi is decades all and had its keybinding replicated across a lot of software. Also some of the keybindings comes from ed and ex commands. So most of your suggestions conflict with those
Also jk is quite nice where they at. I read code more than I write it, and if its formatted for 80 columns, I rarely need to go left or right. So using my strongest fingers is quite nice.
Then you embrace search based navigation and wider movements and you find that you rarely used hjkl other than small movements around a small area.
Yes, obviously I know where it comes from. After all I already mentioned keyboard with arrows on hjkl - that's https://en.wikipedia.org/wiki/ADM-3A
My point was to illustrate that talking younger people not experimenting or improving is a bit hypocritical when coming from vi/vim community which is comparatively speaking a fossil stuck on first draft from 1976 (designed for hardware that no longer exists) that haven't changed anything for the better because they are already used to something.
You don’t reinvent your fundamentals when they work well enough. But that doesn’t stop someone from experimenting, to find their boundaries and coming up with something new. Vim has been refined from its first iteration to something that’s very powerful. And there’s a lot of plugins that expanded its power, all created via experimentation.
You don’t have to break what’s working to create something better. Disruption is not the only way to innovation.
> You don’t have to break what’s working to create something better.
Which is an argument for non-vim users to not learn vim as that would require breaking the working workflow they have.
Personally I would be interested in evidence-based editor. Where actions are structured and put on keyboard not by vibes, but by thoughtful consideration of actual usage. Wouldn't really increase my productuvity, especially not in new era, but it would be interesting to have if only to "feel like a hacker".
Frankly I'm pretty sure there are still "younger people" happy to learn stuff, even if it's about a fossil. I wanted to find some dinosaur bones when i was a child so maybe I went for the text editor instead.
Completely unrelated, but I find this typo interesting.
My suspicion is that you meant to write "old", but phonetically "all" is quite similar, and your fingers just produced the sound in your head. I'm guessing you've been touch-typing for a long time.
Not sure what's happened there. I was writing this on my phone and I do a version of touch typing there with 2 thumbs. Sometimes I start with an idea, type some words, then stop to think more and then restart typing. When rereading (which I don't do often for HN comments) there are always weird typos and grammatical errors.
I'm not a native speaker. I don't do translation in my head, but I have to consciously think about the idea before typing it (other than platitudes like "How are you?" and "You're welcome" which are basically O(1)). My mind dictates and I type. So the interruptions are like time glitches in my typing for another person, but was perfectly reasonable while I was doing it.
That also reminds me when I was at school and my classmates didn't want to do practice exercises with me. I got the habit of only jotting down checkpoints when I solve problems as writing everything would have slowed me down a lot. So random formulas, figures, and numbers keep appearing with no visible links between them.
Of course if you can configure your keyboard as you wish it's a different question; you might move the arrow keys around the home rows if you want. But then the deeper you go into Vim the less you use hjkl anyway...
Also, here's a sokoban when you can use arrow keys or hjkl: https://themouseless.dev/sokoban/
Replies (1)
It could be (non-exhaustive list):
jkl; - actual resting home row position
ijkl - no hand movement, no pinky usage (also mirrors arrows and controls that are structured that way outside of your keyboard)
asdf - right hand resting home row position
esdf - right hand, no hand movement, no pinky (gamers used to wasd would love it)
Having navigation single key shift away from resting position has no upsides that I can see. It takes premium home row space, except it fits only 3/4. So you either shift your hand all the time, or your index finger is now busy with both right and down and is moving laterally.
And if it's not actually important, why is it on home row and not say bottom row: m,./ - you'd just curl your fingers and access movement without shifting of your hand.
So the explanation today is nothing other than "Our ancestors did it this way and so shall you, youngster. Scientific basis is overrated and we are not trying new things.".
Replies (1)
Also jk is quite nice where they at. I read code more than I write it, and if its formatted for 80 columns, I rarely need to go left or right. So using my strongest fingers is quite nice.
Then you embrace search based navigation and wider movements and you find that you rarely used hjkl other than small movements around a small area.
Replies (2)
My point was to illustrate that talking younger people not experimenting or improving is a bit hypocritical when coming from vi/vim community which is comparatively speaking a fossil stuck on first draft from 1976 (designed for hardware that no longer exists) that haven't changed anything for the better because they are already used to something.
Replies (2)
You don’t have to break what’s working to create something better. Disruption is not the only way to innovation.
Replies (1)
Which is an argument for non-vim users to not learn vim as that would require breaking the working workflow they have.
Personally I would be interested in evidence-based editor. Where actions are structured and put on keyboard not by vibes, but by thoughtful consideration of actual usage. Wouldn't really increase my productuvity, especially not in new era, but it would be interesting to have if only to "feel like a hacker".
Continue this thread (1 replies) →
Replies (1)
I was just raising the point that if vim users refuse to change, it's reasonable to expect people to not change to vim usage.
Continue this thread (1 replies) →
Completely unrelated, but I find this typo interesting.
My suspicion is that you meant to write "old", but phonetically "all" is quite similar, and your fingers just produced the sound in your head. I'm guessing you've been touch-typing for a long time.
It's amazing that the human brain works that way.
Replies (1)
Not sure what's happened there. I was writing this on my phone and I do a version of touch typing there with 2 thumbs. Sometimes I start with an idea, type some words, then stop to think more and then restart typing. When rereading (which I don't do often for HN comments) there are always weird typos and grammatical errors.
I'm not a native speaker. I don't do translation in my head, but I have to consciously think about the idea before typing it (other than platitudes like "How are you?" and "You're welcome" which are basically O(1)). My mind dictates and I type. So the interruptions are like time glitches in my typing for another person, but was perfectly reasonable while I was doing it.
That also reminds me when I was at school and my classmates didn't want to do practice exercises with me. I got the habit of only jotting down checkpoints when I solve problems as writing everything would have slowed me down a lot. So random formulas, figures, and numbers keep appearing with no visible links between them.