Reputation: 1057
Hi for some reason when I create a binding nnoremap <c-[> <<_
it creates additional normal mode bindind which looks like n <Esc> * <<_
in :nmap
, which results in shifting lines indent every time when I press Escape key in normal mode. I did not map Esc binding it sort of commes as side effect of nnoremap <c-[> <<_
as if I comment out this line strange behaviour disappears if I source $MYVIMRC file with the commented line it does not remove the Esc binding I have to exit and open nvim in order for this to take effect. Do you know what could be causing this?
Thanks in advance.
Upvotes: 1
Views: 231
Reputation: 94423
Control-[ is Esc. See https://en.wikipedia.org/wiki/Control_character:
27 (escape, ESC, \e (GCC only), ^[). Introduces an escape sequence.
Upvotes: 3