On Thu, May 11, 2006 at 03:10:40PM +0200, Pierre Habouzit wrote:
> Le Jeu 11 Mai 2006 14:57, Pierre Habouzit a écrit :
> 
> >     " make <enter> work in popup
> >     inoremap <cr> <C-R>=pumvisible() ? "\<lt>C-Y>" : "\<lt>cr>"<cr>
> >
> > sadly I can't do the same with <esc> to exit the completion, because
> > of <esc> beeing <esc> (and me using vim into non 8-bit capable
> > terminals).
> 
> which is a wrong assertion, 
> 
> inoremap <esc> <C-R>=pumvisible() ? "\<lt>C-E>" : "\<lt>esc>"<cr>
> 
> just look to work fine. I don't remember which problem I encountered 
> with that one ...

Here it doesn't work (urxvt terminal), after this mapping, I get things like 
just
writing A and B on a new line when I press <up> or <down> after
canceling a popup with esc.

Reply via email to