> for s:m in filter(['}', ')', ']', ':'], '!empty(maparg(v:val, "i"))')
>    execute 'iunmap' s:m
> endfor
> unlet s:m

Is there a way to say "For every mapping that starts with <leader>b, unmap it"?

I tried using the mapcheck("<leader>b"), and it returns the rhs side
of the mapping.  From there, I don't know how to find the lhs and
unmap it.

This is for curiosity's sake, I'm explicitly unmapping now, but the
programmer in me says there's a better way.

--Nate

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to