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. > > I think that could be quite 'unsafe' to trigger without an explicit > command. The whole point of noremap is to ignore all user > customisations so that Vim behaves completely predictably. Expanding > abbreviations would undermine this. It wouldn't be so bad in insert > mode as in command mode, but it still would be bad.
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 cannot see why :noremap has to do with abbrev expansion, IMHO it's not a related thing. At least a dedicated key like i_Ctrl-] should work always. The current behaviour looks like a side effect by accident, also because it seems to be ignored in the help. -- Andy --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
