Le Jeu 11 Mai 2006 21:55, Martin Stubenschrott a écrit :
> 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.

riiiight, that was the problem: <up> <left> and other keys like that do 
not work anymore in insert mode. I knew there was a “small glitch” if 
using vim in a terminal emulator :)

-- 
·O·  Pierre Habouzit
··O                                                [EMAIL PROTECTED]
OOO                                                http://www.madism.org

Attachment: pgp3jJvB0phbw.pgp
Description: PGP signature

Reply via email to