Thursday, February 3, 2011

Re: Find out the origin of a mapping

On 2011-02-03 Tim Chase <vim@tim.thechases.com> wrote:

> On 02/03/2011 10:21 AM, Marco wrote:
> > But I cannot find the place where the<Ctrl>+j mapping is defined.
> > With :map it is not listed. Is it a plugin? How can I find out where the
> > mapping is defined?
>
> Depending on the mode in which the mapping is used, it might be
> an insert-mode map. You'd want to look at the output of both
>
> :map
> :map!
>
> If it's in one of those, you can determine the source by
> prefixing it with "verbose":
>
> :verbose map
> :verbose map!

Thanks for the :verbose. That's a brilliant one!

> If it's truly not a mapping, there's something particularly
> suspect going on.

It is a mapping, and of course it's listed in the :map command. But it outputs
zillions of lines and polluted my screen, I just overlooked it.


Regards
Marco


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