On Sat, Feb 14, 2009 at 8:41 PM, Tony Mechelynck wrote:
>
> On 15/02/09 02:16, Matt Wozniski wrote:
>>
>> Right, but the abbreviation of the expansion is caused by the space
>> that is inserted on the RHS.  When remapping is disabled, that space
>> doesn't cause the abbr to be expanded.  It seems that<C-]>  also
>> doesn't cause the abbr to be expanded...
>
> If typing
>
>        a<C-]>
>
> doesn't cause
>
>        iabbr a b
>
> to be expanded _because_ there exists a
>
>        inoremap  <Space>  <Space><C-G>u
>
> then there's something seriously wrong somewhere, since you never typed
> the space which would have triggered the mapping anyway. I can't see how
> the presence or absence of a mapping which isn't triggered could make
> any difference at all.

Sorry, I should have been more clear.  I meant that not only does

inoremap <space> <space><C-g>u

not cause the abbr to be expanded, this doesn't cause it to be expanded either:

inoremap <space> <C-]><space><C-g>u

and this leads to a recursive iabbr -> imap -> iabbr loop:

imap <space> <C-]><space><C-g>u

So, what I meant to say was that not only does using a :inoremap not
allow the iabbr to be expanded, but there doesn't seem to be any way
to work around that short of using the non-nore version.

~Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to