Fedora 21 Terminal
First configure imap jk <ESC>
You can do it through jk
<ESC>
. I don’t know why it suddenly fails after using it. Press jk
and directly output <ESC>
.
imap jk <ESC>
is written in the configuration file and is invalid.
I just executed :imap jk <ESC>
in Normal mode and then entered Insert mode. However, it failed again after exiting vim and then entering again.
Very weird :(
imap refers to mapping under input mode. This is the keyboard mapping at this time, which will directly input text. You should change it to nmap, or be more violent and try map
You can execute it
:map
to see what jk is mappedThe most likely reason for this is that you try typing something with
<ESC>
原始的意义取消掉了,你直接按ESC
.If it’s normal, you can try mapping
imap jk <C-[>
Maybe there won’t be any problems