3 ms·
At home (Linux with a PC keyboard), I just map capslock to control, and don't map anything to capslock: I have to type in all caps so little that it doesn't jus
by dghf 6y ago
At home (Linux with a PC keyboard), I just map capslock to control, and don't map anything to capslock: I have to type in all caps so little that it doesn't justify a key of its own, and holding down the shift key for several characters once in a while isn't much hardship.
At work (MacBook Pro), things get a little hinkier:
- I map capslock to command
- in iTerm2 only, I swap command and control.
This means I can use the honking big key to the left for my cutting/pasting/window-switching needs when not in the terminal, and still use my muscle memory for Vim and the command line when I am in the terminal.
The (not insignificant) downside is having to remember to use the physical control key (rather than capslock or physical command) for copying/pasting/window-switching when in the terminal: but I can live with that.
I also had to disable iTerm2's default command-W shortcut for closing tabs, as I kept hitting it by accident when trying to ^W on the command-line.
Separate but still (just) related point: I've had to train myself to use ^[ for Escape in the terminal (especially in Vim), as the escape key on the MacBook Pro's touchbar is next to useless. I guess could have just mapped capslock to Escape, but having that big fat control/command key is just too useful.