Last week I set up a heroku+twilio app to call me and yell whenever I curled its URL.
The idea was to use it to train myself to stop hitting ESC in vim, but I'm sure it's portable for other pavlovian needs.
The idea was to use it to train myself to stop hitting ESC in vim, but I'm sure it's portable for other pavlovian needs.
I have the following in my .vimrc, it's commented out because I had gotten some weird behavior:
inoremap <esc> <nop>
inoremap jk <esc>
When I'm in insert mode with these mappings un-commented, if I hit the arrow keys I get input like the following:
0A0D0B0C
(up, left, down, right keys). It prints the hex values into the editor instead of moving the cursor. And if I click with the mouse or drag in insert mode:
[M_M1[M@M2[M@N1[M#U ... etc.
With those mappings commented out I don't have this problem - of course I'm back to stretching my pinky 3 rows of keys up to the escape key :(