If I try to write a file under a new name, instead of being able to edit an existing name provided by file-completion, I get a pop-up that only lets me select an existing one.

I saw a description of this problem in the internet that was similar but involved the arrow keys, and the solution required remapping them! I use vi map, you can't remap j/k/l/h. Or do I misunderstand

  • 2
    what exactly did you do? How did you get the popup? What keys did you press? Mar 10, 2022 at 14:52
  • 1
    after making a change the file: ":w c<tab>". At that point, I got a popup listing files starting with c and one was supplied on the command line. When I start to cruise to where I wanted to make the change ("hhh"), it moved the cursor in the pop-up. In the meantime, I have a work-around, but .... The work around is to use the backspace key to delete the last character (where the commandline cursor is). This disables the popup and I can then move to where I want to make a change
    – n952162
    Mar 10, 2022 at 15:05
  • 1
    Does Ctrl-C/ESC make a difference? Mar 10, 2022 at 15:09
  • 1
    Well, ESC naturally aborts the command line, presumably ctrl-c, too. ... yep, that, too
    – n952162
    Mar 10, 2022 at 15:11
  • 2
    @D.BenKnoble done Mar 11, 2022 at 14:09

1 Answer 1


As explained in the documentation at :h 'wildmenu' you can type

CTRL-E: end completion, go back to what was there before
selecting a match.

Note: To have the popup menu displayed, and a recent enough enough vim (v8.2.4325 or newer) and you need to configure Vim to make use of it:

:set wildoptions=pum
:set wildmode=full

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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