Cursor goes one character back in vim when changing modes [duplicate]
-
11-06-2021 - |
Pregunta
When we go from INSERT
mode to NORMAL/COMMAND
mode by pressing the Esc key, the cursor shifts one position back.
I don't want this to happen. I want the cursor to be where it is even after I change into COMMAND
mode.
Solución
This behavior comes from good ol' vi. To change it:
:inoremap <Esc> <Esc>g`^
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow