jdhao / jdhao.github.io

My personal blog: https://jdhao.github.io/
25 stars 6 forks source link

2020/11/23/neovim_better_mapping_for_leaving_insert_mode/ #29

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

A Better Mapping to Leave Insert Mode than jk - jdhao's blog

Update 2021-01-14: I ended up writing a plugin called better-escape.vim which aims at solving this issue. A very popular insert mode mapping for Neovim/Vim is to map jk or kj or jj to <ESC> for quicker escaping from the insert mode. I have used the following mapping for quite some time: inoremap jk <ESC>

https://jdhao.github.io/2020/11/23/neovim_better_mapping_for_leaving_insert_mode/

bodqhrohro commented 2 years ago

What's the purpose of these mapping when we have 'C-[' out of box?

jdhao commented 2 years ago

What's the purpose of these mapping when we have 'C-[' out of box?

Ctrl-[ is harder to press than jk for me. YMMV.