3 ms·
The inoremap jk <esc>, inoremap kj <esc> configuration gets you back to normal mode only from insert mode. What do you do if you want to return to normal mode f
by foo101 9y ago
The inoremap jk <esc>, inoremap kj <esc> configuration gets you back to normal mode only from insert mode. What do you do if you want to return to normal mode from visual mode or command mode?
What if you want to type an abbreviation and expand it when you escape from insert mode to normal mode?
- weaksauce 9y ago> What if you want to type an abbreviation and expand it when you escape from insert mode to normal mode? I press space or tab or enter or actual escape if I need an abbreviation and it happens to be at the end of what I intended to insert... I pretty much never rely on escape to do the abbreviations though because it's not at the end of what I want to insert anyway. I also don't use visual mode enough to need to have an escape for it. you can certainly change the timeout on visual mode and add a visual mode mapping for that too if you want to do that. It seems you have a the attitude of this is the only "correct" way to do it. I don't really care if you use it or not... I was merely providing an alternative way to do what you want with the added benefit of it giving you an extra modifier key that you can bind other things to. You can also map it globally or for each of the handful of modes you want to escape from using it.