win-vind
win-vind copied to clipboard
[Question] Can you diffrentiate between key press and key up?
Hi,
I don't think this exists in vim, but can you distinguish between key press
and key up
in the key bindings that can be mapped in .vinrc
?
If yes, then I would change my binding from:
inoremap <esc> to_edi_normal
to:
inoremap <esc[KEYUP]> to_edi_normal
-- that would go a long way toward ease of use of win-vind
, because it will avoid incorrect actions and overlapping mappings, such as switching to other modes, like <esc-up>
and so on. Only when the <esc>
key press is released (=KEYUP) would it activate the binding....
This issue was marked as stale because it has been inactive for 60 days. If there are no comments within 14 days, it will be closed automatically.
This issue has been marked as stale, but has not been mentioned for 14 days, so it is closed.
It is possible to implement a distinction, but currently no such functionality is available.
If I only activate when release ESC, does that mean we have to press and hold it at all other times?
Sorry for the late reply.
Some time has passed, so I am not sure now. It seems that my initial request wasn't clearly described: the logic for [KEY-UP] makes sense only if we have also the option of
Best and keep up the great work!!
This issue was marked as stale because it has been inactive for 60 days. If there are no comments within 14 days, it will be closed automatically.
This issue has been marked as stale, but has not been mentioned for 14 days, so it is closed.