On 14:22 Fri 23 Nov     , Timothy Madden wrote:
> Hello
> 
> In my plugin I would like to display a small "help" window with some 
> mappings the user can invoke. Depending on preferences and already 
> existing mappings, these can have one of several possible {lhs}, 
> although the {rhs} is a known string like <Plug>PluginFunction.
> 
> Is there a way for me to know what mappings have '<Plug>PluginFunction' 
> as the {rhs} ? So I can display the {lhs} in the "help" window for the 
> user ?
> 
> Something like hasmapto(), but I would also like to know what the 
> mapping is.
> 
> Thank you,
> Timothy Madden
> 
> -- 
> 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

Hi Timothy,

I think there is no function for that, unfortunately.  You can look at
my plugin:
http://www.vim.org/scripts/script.php?script_id=3767
how I have implemented a grep through the mappings.  Basically I dump
the output of the map command (or its variations) and use a vim pattern
to match against the rhs.  As far as I understand you want to have
something similar.

Best,
    Marcin

-- 
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