Wednesday, February 29, 2012

Re: abbreviation does not work after map

On 02/29/12 08:41, Yichao Zhou wrote:
> I found a very annoying problem. If I map<CR> like
> :inoremap<CR> <C-G>u<CR>
> Then the<CR> will lose the ability to translate the abbreviation.
>
> Other maps does not work either.
> So are there any workaround to make<CR> work in abbreviation while
> we can still map it?

You might try

:inoremap <cr> <c-]><c-g>u<cr>

:help i_CTRL-]

-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: