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
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.
That makes sense. I didn't realise you were
There are some odd details about how abbreviations get triggered:
(abbrevs like :ia foo bar )
1. abbrevs are not triggered by a mapping when remapping is off:
abbrevs not triggered:
:ino esc esc
:ino esc c-]esc
abbrevs triggered as expected:
:imap esc esc
:imap esc c-]esc| careful,
1. abbrevs are not triggered by a mapping when remapping is off:
abbrevs not triggered:
:ino esc esc
:ino esc c-]esc
abbrevs triggered as expected:
:imap esc esc
:imap esc c-]esc| careful, endless loop
I'd like to have abbrevs expanded in all situations.
I think that could
Ben Schmidt schrieb:
1. abbrevs are not triggered by a mapping when remapping is off:
abbrevs not triggered:
:ino esc esc
:ino esc c-]esc
abbrevs triggered as expected:
:imap esc esc
:imap esc c-]esc| careful, endless loop
I'd like to have abbrevs expanded in all situations.
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