Ben Schmidt schrieb:
>> The builtin Escape key already expands abbrevs. Isn't this like a
>> part of its definition? If I put <esc> on the right side of a
>> noremap, I do this in order to get this builtin behaviour.
>
> I disagree. If *I* put <Esc> on the right hand side of a mapping I do
> it to get the builtin behaviour of 'exit insert mode', not 'change the
> text in user-customised ways and then exit insert mode'.
>
> But more importantly, if I put something like "iword " on the right
> hand side of a mapping, I expect 'word' to be inserted, not expanded
> as an abbreviation.
> Much more important is if I put ':command something' on the right hand
> side of a mapping, I expect ':command' to get executed, not something
> else that the user has defined as an abbreviation.
>
> I would think a good number of scripts would break if the
> interpretation were yours and thus the behaviour changed (any mapping
> that inserts text has the potential to break!).
The scripts wouldn't break. Of course an abbreviation given in the
{rhs} of a :noremap is not to be expanded, just like any other user
mapping.
My example
:ino <esc> <esc>
targets an abbreviation that is not part of the mapping, but already to
be found in the text.
>> At least a dedicated key like i_Ctrl-] should work always.
>
> Mmm. Looks like we all agree on that one.
Ok :-)
--
Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---