Thursday, February 3, 2011

Find out the origin of a mapping

Hi,

my vim has the behaviour that <Ctrl>+j jumps to the next or previous <++> and
removes this. This is handy when using parentheses. I mapped them to ()<++>
and set the cursor inside. This way I can skip the closing parenthese with
<Ctrl>+j.

I want to modify this behaviour. When pressing <Ctrl>+j I want to to some
custom things (executing a function) and then perform the original <Ctrl>+j
mapping to remove the <++> construct.

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?


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