Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Most vim users swap esc with caps lock anyway

"Some", sure, but "most"? Not so sure about that.

Besides, everyone knows what Ctrl is the One True Key™ in place of the Caps Lock and that only degenerate infidels map it to anything else.



> Besides, everyone knows what Ctrl is the One True Key™ in place of the Caps Lock and that only degenerate infidels map it to anything else.

Haha yeah I've heard about that and I like the joke =) But I was never interested in adopting it. Because I configure my alt keys to act as ctrl keys which imo results in a much more ergonomic setup.

Ctrl is the most pressed control key for people like me who live in the terminal. But the default placement of the ctrl keys in modern layouts is so wrong. I have never understood it. I guess there has to be a historical reason but I've yet to find out. (Help me, greybeards)

I should't have to move my hand and strain my pinky to reach out the most pressed control keys. With alt it's so much easier. I don't have to move my hands nor use my pinkies. My thumbs already rest on the spacebar and I just have to make a little thumb movement.

Swapping ctrl with caps lock is an ok remedy but alt keys are in a much better place.

So ctrl goes where alt is by default.

But do I swap ctrl with alt? No!! Alt is a frequently used key as well so the default ctrl keys aren't a good fit for alt either. Instead I set the keys immediately adjacent to the default alt keys to act as alt. It's the Super key (sometimes referred as the "Windows" key) on the left side and the context menu key on the right.

Lastly, I set the default left ctrl key to act as Super and the right ctrl key to act as context. Because I virtually never use those.

(I think Apple got this mostly right. cmd is the most used control key for the average Apple user, and opt is next. Their placements are perfect. Though it's still problematic for developers as ctrl is again at the worst place possible. Because of that, what I do in Macs is swapping ctrl with cmd while leaving opt where they are.)

If I'm an infidel for doing this so be it. But with this setup, I'm extremely efficient one. I type and code and enter & exit from repls and jump between interfaces like a damn machine, impressing mostly everybody who watch me use my computer.

Ergonomics FTW


> Ctrl is the most pressed control key for people like me who live in the terminal. But the default placement of the ctrl keys in modern layouts is so wrong. I have never understood it. I guess there has to be a historical reason but I've yet to find out. (Help me, greybeards)

I've seen this talk here and the speaker mentioned the ADM-3A (that is also mentioned in the article itself) terminals at about the 17/18 minute mark. Mind the keyboard layout :)

https://jackrusher.com/strange-loop-2022/ https://en.m.wikipedia.org/wiki/ADM-3A


Thank you, I very much appreciate this. Will happily watch the talk which looks very interesting to me. Cheers!


I actually don't really care, although trying the "regular" Ctrl on my laptop feels odd, but I'm also not used to using it.

It's just what I'm used to. I grew up on the MSX which, like many keyboards of its day, had Ctrl where we now have Caps Lock. When we upgraded (well, "upgraded") to Windows 95 I found some hack to make CapsLock behave like Ctrl because I was so used to it. Later I started using Linux and BSD and of course carried over the mapping with xmodmap. I've never really known anything else than Caps Lock being Ctrl.

Another oddity from my MSX days that took me years to get rid of was that a line would only be saved if you pressed "enter" at the end of it. That is, if you were editing some file, went up a line, edited it, and then just went down a line (without pressing enter) it wouldn't actually get saved. It took me quite a long time to get rid of the habit of "End + Enter" to make sure the line got saved (which wasn't needed on any other system I've used).


Thank you, I appreciate your answers very much, very interesting to me!


For whatever reason IBM in their wisdom decided the AT keyboard should move Ctrl from next to A to where it is now. And I guess since that's when PC clones really started to pick up steam and decided to copy the most recent keyboard it got entrenched. And when Apple decided to bring the control key back to the Mac I guess it made some sense to copy what the PCs were doing and also not mess with previous Mac user's keyboard skills?

Japanese keyboards have extra keys near space. It's possible with software to remap those keys to something else like Ctrl. Really wish more keyboards had usable thumb keys...


I always wondered why people are finding it so hard to hit control. And then realized I've been using ThinkPad for 25years which has control closer. Maybe it's not as insane choice / change as I always thought!


That makes sense but I think it's still ergonomically incomparable to having ctrl right next to my thumb. At least for me who use it so very frequently.


Why not have the best of both worlds?

Both my Ubuntu and OSX machines are setup so that just pressing Caps Lock alone = escape, and holding Caps Lock = control.

For the curious, to do this in OSX I use Karabiner + a "complex modification" (i.e. import a small JSON config). And for Ubuntu I use a few 'xcape' commands that autorun on startup.


Emacs pinky isn't really a problem if you don't use Emacs keybindings ;)


My personal heresy is: ino jj <esc>

I like it because my fingers never leave the home row.


That, and "inoremap jk <Esc>".


Better is "inoremap fd <Esc>" especially if you ever try to type Dijkstra or the alphabet.

Of course now you have to call your file descriptor something else. No free lunches.


For some unremembered reason I changed from that to set <esc>=jk. No idea why but it also works.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: