Re: undoing iab expansion
- On 01/04/12 06:06, sinbad wrote:
> i use abbreviations to do autocomplete a big sentence.My first thought would be to use a mapping that invokes
> sometimes the abr' will be inappropriate, so i want a quick
> way to revert back to what i have originally typed. i know "u"
> doesn't work. is there anyother way ?
control-G_U before expanding to your text:
:inoremap XX <c-g>uThis is what it expands to.
That way, when you type "XX", an undo-point gets dropped, and you
can then issue an "u"ndo from normal mode (whether hitting <esc>
or a one-off via control+O)
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