Hacker News new | past | comments | ask | show | jobs | submit login

The best remap in my vimrc:

" Map jk to ESC in insert mode

inoremap jk <esc>

Once you've finished what you wanted to insert just hit jk. The combination never occurs in the English language and is right on the home row :)




That's fun. Does it type the j, then delete it when you press k?


Yes it does. I do the same thing but with jj.


It doesn’t type it into a buffer, iirc. I removed that from my config because it annoyed me that when I press j alone it only appears in a buffer after a delay.


yes, until you find yourself typing jk into word docs or other evil office software every time you finish a thoughtjk.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

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

Search: