Unmapping keys in IdeaVim

I tried to map Numpad 1 to a keyboard shortcut in PHPStorm Idea VIM using the following command:

: map k1 keycombination

Now actually k + 1 maps to a keyboard shortcut. When navigating with the K key, the system expects additional input after K, which is very annoying.

I tried to unmount the combination, but the ": unmap k1" command doesn't work. When I check the key bindings using the: map command, the k1 map still exists.

I couldn't find any documentation regarding this. Does anyone know how to unlock keys in Idea VIM?

+5


source to share


3 answers


You can use this, I just figured it out today:

:map k k



There must be a specific command in ideavim unmap

!

+2


source


I found the problem: By restarting PHPStorm, the mappings that were removed.



Before the IDE crashed and I had to close it using the killall command, so the key mappings set using the: map command were not reset.

0


source


Workaround:

map k :action VimCancelExEntry<cr>

      

It looks like it VimCancelExEntry

has no side effects VimCancelExEntry

(at least not normally).

0


source







All Articles