Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm somewhat curious- why were you trying to train yourself to stop using ESC, and why couldn't you just unmap that key?


I 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.


@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 :(




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: