> I think, this is because of the 'cpo' option including the '<' char (see
> :h cpo-<) which means, vim doesn't recognize<c-g>u as breaking the undo
> sequence. If you set cpo-=< cpo-=u it should work however.
Issuing
vim -u NONE
:set cpo-=<
:iab aa American Airlines
:inoremap <cr> <c-]><c-g>u<cr>
is enough to re-trigger the breaking that was working fine
without the "set cpo-=<" in that sequence.
>> 1) when 'nocp' is set, using<c-]> in a mapping doesn't expand
>> abbreviations.
>
> This seems like a bug, and here is a patch. I am not sure, this is the
> correct way to approach this bug, but it works for me™
[patch snipped]
sounds like enough to either get a reviewer's eyes to make sure
it's kosher, or have somebody poke in the Right™ place. :)
-tim
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment