简体   繁体   中英

the behavior of IntelliJ Idea Vim is something strange

I use Ctrl+k for exiting Insert mode. So, I did the key mapping on IntelliJ. enter image description here

it seems work well. But, something is wrong.

When I type Ctrl+k, it looks exited insert mode. but after the input ctrl+k, next input is not recognize.

it's difficult to explain for my poor English. so please try setting Ctrl+k as a Exit Insert Mode, and check the behavior.

thank you for your help.

You should configure alternative shortcuts for the Vim emulation keys as Vim key mappings as in the original Vim. See the Vim help for :map commands. You can put those mapping into your ~/.ideavimrc.

A small example:

inoremap <C-K> <Esc>

Configuring them via "File | Settings | Keymap" is not supported.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM