5 ms·
Assuming that you've not remapped caps lock already to something else like control.
by 0mp 10y ago
Assuming that you've not remapped caps lock already to something else like control.
- chongli 10y agoI've remaped caps lock to control. I use vi and press caps-[ to achieve my escape to command mode.
- weaksauce 10y agowhy not something like jj or jk? inoremap jj <Esc> also, mapping the leader to spacebar is great mapleader=" " and finally nnoremap Q @@ map the Q key to replay the last macro you used... much nicer than using @r or @g or whatever every time you want to replay the macro.
- duckfruit 10y agoI tried mapping jj to esc, but even after a few days I couldn't really get used to it. Always drove me crazy when it would switch modes when I just intended to type 'jj' as a variable name in loops. At least it got me to use more meaningful names! Your latter suggestions are brilliant, I'm going to steal them right away.
- dmlittle 10y agoYou could map it to both 'jk' and 'kj' and then you don't have to worry about the order of the keypress, just press both 'j' and 'k' together.
- duckfruit 10y agoI like that suggestion. Thank you!
- weaksauce 10y agoIf you like the space bar leader you might want to try spacevim or something like that. (I switched to spacemacs and I love it... Vim is a great style of editing but the plugins are bad and feel broken and half assed. Spacemacs fixes that by combing the best of vim with the best of Emacs. That feels dirty to type but it's true.)
- WildUtah 10y agoTry mapping kj instead of jj. I use jj and jk often enough (quaternions, don't you know) but kj is a really obscure sequence.
- cauthon 10y agoYou can have the best of both worlds with Karabiner. After remapping caps lock to Control, you can add a Karabiner setting to send Escape when you tap Left Control. Holding caps lock in combination with another key will still act as ctrl-<key>