The files that make me a programming whiz
These dotfiles include configurations for:
- VS Code
- Z shell
- and more...
Tips and tricks
Here are a few tricks, some inspired from Steve Losh's A modern space cadet, that help me be productive.
Redundant caps lock
Holding down shift does the job so a common hack that programmers employ to speed up their workflow is to map caps lock to escape and control.
- caps lock to escape
- caps lock + <key> to control + <key>
Pressing shift keys alone does nothing, they're useful only when pressed with other keys, so those can be mapped to parentheses which are very regularly used in programming.
- left shift to (
- right shift to )
Please note, this mapping is only for when a shift key pressed by itself. When pressed in combination with other key it acts as intended.
Arrow keys are some of the most frequently used keys which require moving hands away from the home row. We can get inspiration from Bram Moolenaar and create mappings like so:
- right command + h to left
- right command + j to down
- right command + k to up
- right command + l to right
Note that we're only mapping the right command and leaving the left one as is.
Hyper and Meh keys
Hyper and Meh, terms popularized by Ergodox community, mean combinations of modifiers. Having two sets of command and option keys seems redundant, especially when both are relatively accessible as compared escape and arrow keys, so one of the sets can be mapped to hyper and meh keys.
- right option to option + control + shift (Meh key)
- right command to option + control + shift + command (Hyper key)