The question arise from a problem using a huge remapped configuration so bépo layout is virtually the same as the qwerty in normal mode, at least for single key press commands.
Selecting text using visual selection mode, then pressing i
which is configured as noremap i d
, it would be expected that the text would be immediately deleted. But it isn't immediately triggered, instead it's waiting for a possible second key.
Setting timeoutlen
to zero will achieve the expected result in this context, but then a command like ,,
which is configured as noremap ,, gg
won't work anymore.
So is it possible to set timeout specific to one command, or in certain context like in visual selection mode with an active selection?
Maybe having timeoutlen
turned to zero might make things like noremap ,, gg
useless, so just removing this mapping might be enough to achieve the expected result.
CursorMoved
and monitor for changes to modes, but that's error-prone and too much overhead).