Using an exotic keyboard layout, I have to reassign g (among other things), which is on my layout, to position h on the classic qwerty layout. To do this, I decided to replace g with h with the following commands:
noremap gh noremap hg
This does not work. For example, the input hh is treated as gh, not gg. Also, when g is pressed, g is displayed (with showcmd turned showcmd ), not h, and it seems that it does not account for reassignment, it acts like the g command. But when you press g again or wait for 1 second, it actually moves to the left.
I tried the following to make it standby operation
onoremap gh onoremap hg
but it does not change anything.
So why does it behave this way? And how to fix it?
source share