Using an exotic keyboard layout, I have to remap g (among others) which is, on my layout, in the h position on a classic qwerty layout. To do so I decided to swap g with h with the following commands:
noremap g h
noremap h g
This doesn't work. For instance typing hh is viewed as gh and not gg. Also when hitting g it shows g (with showcmd
enabled) and not h and it doesn't seem to take the remapping into account, it act like the g command. But when hitting g again or waiting 1 second it actually moves left.
I tried the following to make it work in operation-pending mode
onoremap g h
onoremap h g
but it doesn't change anything.
So why does it behaves that way? And how to fix it?