6 ms·
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'
by dpritchett 15y ago
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.
https://github.com/dpritchett/no-calls-please https://github.com/dpritchett/no-calls-please
- espo 15y agoIm hitting ESC in vim all the time. Is that a bad thing?
- fishtoaster 15y agoI'm somewhat curious- why were you trying to train yourself to stop using ESC, and why couldn't you just unmap that key?
- dpritchett 15y agoI mapped <jk> to serve the same purpose (quit insert mode) - it's a common power user tip but I've never gotten used to it. Unmapping wouldn't have been so fun... I also display a `fortune -o | cowsay -f hello-kitty | lolcat` on screen for five seconds while the phone is ringing.
- Dornkirk 15y ago@dpritchett, how is your key mappings defined for this? 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 :(