I was wandering that sometimes I'd like CTRL-E and CTRL-Y to work even while I'm in insert mode. Before setting up any mapping I thought I should see if I'm shadowing some important functionality, so I searched for :h i_CTRL-E and discovered these two functionalities of CTRL-E and CTRL-Y in insert mode. I didn't know of them, nor I can think of how they could come useful to me.

Experimenting with them, I've noticed that CTRL-E is interrupted by the appearence of the pop up menu (which for comes up with YCM), but CTRL-Y isn't.

So I was wandering,

  • Is the fact that the pom prevents CTRL-E from working something avoidable?
  • Why this asymmetry between CTRL-E and CTRL-Y, the former being interrupted by pom and not the latter?
  • (Offtopic) Is anybody using those two insert mode commands?


  • 1
    Good question re. practical use for these two commands. Except for a few Vim Golf questions :) I've personally not come across anything yet despite being aware of them for a pretty long time. There's gotta be something that they are good for beyond the very occasional, basically random happenstance of needing to copy a couple characters from an adjacent line (personally I'd just type them...just as fast).
    – B Layer
    May 23 at 10:42

Is that something avoidable?

What is "avoidable"? <C-E> normally escapes from pum; <C-Y> accepts pum selection. But you can remap both (probably with check against :h pumvisible()) if required.

Why this asymmetry

In fact, they are quite symmetric to each other: copy from up/down line in insert mode; or cancel/accept pum if it's visible.

Is anybody using those two insert mode commands?

Me. From time to time.

  • I've just clarified the question
    – Enlico
    May 23 at 12:49
  • @Enlico I still don't understand. <C-E> always works. It just does different things depending on pum is visible or not.
    – Matt
    May 23 at 12:57
  • yeah, but I didn't know it was meant to do something different when pum is visible, hence my question.
    – Enlico
    May 23 at 13:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.