vim key mapping failed
过去多啦不再A梦
过去多啦不再A梦 2017-05-16 16:39:21
0
3
655

Operating environment:

Fedora 21 Terminal

question:

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>.

Replenish:

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 :(

过去多啦不再A梦
过去多啦不再A梦

reply all(3)
大家讲道理

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 mapped

滿天的星座

The 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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template