Thursday, June 21, 2012

Re: Determining which plugin is catching a command?

Thanks for the great info guys. I have Done Something Weird and now
cannot reproduce the error I was having. But I have seen related
things happen sporadically in the past, so this will definitely come
in handy debugging in the future.

Really, I mostly just need to do a major purge of unneeded plugins.

Thanks!
-- Steen


On Fri, Jun 15, 2012 at 8:25 AM, Taylor Hedberg <tmhedberg@gmail.com> wrote:
> Sort of. You can see which script last mapped a given key sequence with
> `:verbose map`. For instance, if you want to find out where the `ys`
> mapping from surround.vim was last set, you could do
>
>    :verbose map ys
>
> which for me, prints:
>
>    n  yss           <Plug>Yssurround
>            Last set from ~/dotfiles/.vim/plugin/surround.vim
>    n  ys            <Plug>Ysurround
>            Last set from ~/dotfiles/.vim/plugin/surround.vim
>
> So if some other script is remapping that sequence, you should see it
> there.

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

No comments:

Post a Comment