Remap single tap CAPS to ESC and when used in combination with another key or long-pressed - CTRL. This has changed the way I use my keyboard in vim and tmux.
I'm doing this on Ubuntu, but there are ways to get it done on OSX too.
I'm doing this on Ubuntu, but there are ways to get it done on OSX too.
1. Wait a half-second after typing the "j". That causes the mapping to time out and you can type the "k" without a problem.
2. Type something like Dijj<del>kstra.
once installed, open the app, and go to the "complex modifications" tab. then click "add rule". then click "import more rules from the internet". on the web site that opens, expand "Modifier Keys". import "Change caps_lock key".
that'll give you a rule to do what you want in karabiner. (the rule is "Change caps_lock to control if pressed with other keys, to escape if pressed alone".)