Le 15-04-2011, à 16:36:26 +0200, Tony Mechelynck ([email protected]) 
a écrit :

> On 15/04/11 16:14, Steve wrote:
> >Le 15-04-2011, à 23:09:00 +1000, Ben Schmidt ([email protected]) 
> >a écrit :
> >
> >>>>  :verbose map! d
> >>>
> >>>It shows my mapping which is
> >>>
> >>>! dlist<[email protected]>
> >>>
> >>>which I put in ~/.vim/mappings
> >>>
> >>>If I comment out this line, the problem dissapears. The strange thing is
> >>>that I have other mappings for email addresses, but no problem with
> >>>those.
> >>
> >>I guess you've got a recursive mapping there, since the right hand side
> >>includes the left hand side. It only happens when you type fast because
> >>the mapping doesn't timeout.
> >
> >Not sure I've understood, but
> [...]
> 
> You mapped dlist to <[email protected]> but the {rhs} is reexamined
> for mappings: so
> 
>       dlist
> becomes
>       <[email protected]>
> becomes
>       <<[email protected]>@bluewin.ch>
> becomes
>       <<<[email protected]>@bluewin.ch>@bluewin.ch>
> becomes
>       <<<<[email protected]>@bluewin.ch>@bluewin.ch>@bluewin.ch>
> 
> and so on, until either Vim reaches 'maxmapdepth' repeats (1000 by
> default) or its memory is exhausted, whichever happens first.
> 
> Using :noremap! or :inoremap instead, the {rhs} is not remapped, and
> there is no recursion.

That's very clear an explanation.

Thanks Tony.

Have a nice day,
Steve
 

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