News for hackers. Stuff that matters.
Re:Show HN: I built an interactive course that helps you lea... by manx on Saturday July 09, 2022 @09:50AM (#32035068)
Vim was designed on qwerty keyboards. On other layouts (e.g. neo2) hjkl are not in a row.
Re:Show HN: I built an interactive course that helps you lea... by danielvaughn on Saturday July 09, 2022 @10:12AM (#32035262)
That's somewhat comforting to know. I'm in the beginning stages of building out a keyboard-heavy application, and I keep wondering about how to support different keyboard types. I suppose it's not possible to satisfy all customers if even Vim can't do it.
Re:Show HN: I built an interactive course that helps you lea... by maleldil on Saturday July 09, 2022 @01:12PM (#32037160)
Just support QWERTY but allow the user to remap everything. Even among programmers, the share of people that use alt layouts is so small that is not worth your time.
Re:Show HN: I built an interactive course that helps you lea... by Lio on Sunday July 10, 2022 @03:35AM (#32042623)
I’m a Colemak layout user. I don’t bother remapping anything for Vim because I want it to be consistent with other apps with vi keys.

I have done that briefly years ago but I find it a dead end.

After a while you just get used to the cursor keys being in a different place and if you’re touch typing it doesn’t mater much.

Also what you loose to cursor key placement you gain back on other navigation.

So in short just support qwerty and it’ll be fine.

Re:Show HN: I built an interactive course that helps you lea... by opan on Sunday July 10, 2022 @12:06AM (#32041752)
Very minor issue, speaking as someone who switched to dvorak and then workman while continuing to use vim daily. No keys remapped. It's just not even an issue. Those letters still make those movements. They're in different spots, but I already had to get used to the new spots for writing words in the first place. Doesn't even feel slower.

IIRC dvorak even happens to split the vertical and horizontal movements between hands but while keeping them near each other, almost like RC car controls. Workman is comparatively a bit crazier with its placement, but it still doesn't bother me.

Re:Show HN: I built an interactive course that helps you lea... by spc476 on Saturday July 09, 2022 @05:34PM (#32039518)
Specifically, it was designed on the ADM3A keyboard, which had the arrows printed on the H, J, K and L keys. Also of note is the key in the upper right, which is labeled with "HOME", ~ and ^ (which explains why shells use "~/" to represent the users home directory).

And while I'm diving into history here, vi (which stands for "visual") was a modification of "ex" to use the newfangled "video terminal" instead of the battle tested teletype machine.