I use plugin “Buffet“, and there’s local-to-buffer mapping “d” to delete buffer under cursor.
I also use plugun Surround, and there’s global mapping “ds” that means “delete surround“.
So, when i press “d” in the Buffet’s window, Vim waits for a second before execute mapping “d“. I know about &timeoutlen, but i don’t want to change it. So that I want to resolve ambiguity of key mappings for “d” in the Buffet’s window to avoid timeout to delete a buffer.
To resolve the problem, I want to unmap in Buffet window all the mappings that start with “d“, but except Buffet’s own mappings. How can i do that?
P.S. I have read about maparg() and mapcheck(), but they seem not to be what i need, unfortunately.
It seems like i found the solution myself:
I hoped that there’s more universal approach (to remove really all mappings starting from “
d“), but at this moment i failed to find it.Even if i found out how to get all these mappings, unfortunately i can’t do
unmap <buffer> ds, becausedsis a global mapping. I’m sure that i should be able to disable global mapping for some buffer, though. Vim is great but not perfect.Well, it works for me now.