> 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!).

> At least a dedicated key like i_Ctrl-] should work always.

Mmm. Looks like we all agree on that one.

> The current behaviour looks like a side effect by accident, also because
> it seems to be ignored in the help.

Fair point. And as they say, "if a program is useful, it will have to be 
changed; 
if a program is useless, it will have to be documented." Even if the behaviour 
isn't ideal, at least if it's documented, people know what to expect--and if a 
workaround is documented, too, unwanted side effects can be avoided. Of course, 
we 
don't have a workaround for all of it yet...

Grins,

Ben.




Send instant messages to your online friends http://au.messenger.yahoo.com 


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

Raspunde prin e-mail lui