VIM: time change key in normal mode

I am trying to use a plugin EasyMotion, but I do not want to use the usual one leader key, which is \-key in my case. I am also not going to change leader keyeverything together, as this can break things in vim-latex.

So, I thought about using period-key for this (I already use comma-key to switch to mode command-line), because I never use its repeat function:

This is what I have tried so far in my .vimrc:

nunmap .
let g:EasyMotion_leader_key = '.'

The second command works just fine, as it seems. But I cannot cancel the period key with the first command (E31: There is no such display). If I’m wrong, just wanting to untie the key periodin normal mode, then feel free to correct me.

Any ideas appreciated!

+5
source share
2 answers

You can disconnect the point from normal operation by using

nnoremap . <NOP> 
+12
source

The error says it all. There is no such display. nunmapis used to delete custom maps and .is a built-in command, not a map, so you really don’t format it ...

This is a bit unclear, but if it works as the desired leader, then you can just delete the unmapping line .. It is not necessary.

+1
source

All Articles