win-vind icon indicating copy to clipboard operation
win-vind copied to clipboard

[Question] Unmap multiple commands using <any>

Open happyTonakai opened this issue 3 years ago • 2 comments

Question Hello. I'd like to use ctrl-w to close tab so I need to unmap all commands start with <ctrl-w> in GUI normal modes, including too many commands. So I want to use <any> as a wildcard, something like

gnunmap <ctrl-w><any>

however this doesn't work. Is there a good way to do it instead of unmap one by one? Thank you!

happyTonakai avatar Sep 13 '22 10:09 happyTonakai

Sorry for my late reply.

The <any> keyword is regarded as the one keycode rather than a wildcard, so the unmap removes a perfectly matched map with <ctrl-w><any>.

I didn't consider the unmap using wildcard, so I'll implement it in the future.

In the current win-vind, please use unmap all commands, and re-define necessary commands.

Thanks for your contribution.

pit-ray avatar Sep 22 '22 08:09 pit-ray