4

One thing that really bothers me in vim (probably the only thing), is the wildmenu.

In neovim, the wildmenu is vertical and looks as following:

enter image description here

However, in vim, it is horizontal and looks like this:

enter image description here

Is it possible to get the vertical wildmenu in vim?

If possible, without a plugin, but if there is no other way then I don't mind.

7
  • The only one-entry-per-line command-line completion I'm aware of is for a very specific situation: when using :tag and you press Ctrl-D but only if you've done :set wop=tagfile. Yeah, extremely limited.
    – B Layer
    Jun 14 at 10:12
  • 1
    Kind of a shame since we know Vim can do that kind of display...autocomplete of any kind in the buffer does it. Sounds like a worthy feature request. (Assuming I'm not missing something already there.) Welcome to Vi&Vim SE, BTW.
    – B Layer
    Jun 14 at 10:20
  • 1
    @BLayer I have set wildoptions="pum,tagfile" enabled, but i still get the horizontal menu
    – Lea Hubert
    Jun 14 at 10:32
  • set wildoptions="pum" this is a neovim only addition. I don't think vim currently allows to use a vertical popup menu for the wildmenu. Jun 14 at 12:15
  • Actually, you've found a bit of a Vim issue. I believe the :set that you ran should emit an error message because it is rejecting the value...:set wop? shows no right-hand-side value. Now try it without the double quotes, :set wop=pum,tagfile and you'll get an error. But anyways...if you want to see the completion format I mentioned in my first comment you'll have to type it just like I show.
    – B Layer
    Jun 14 at 12:33
2

It's not available in Vim. However, there is a fork called Vim-CLPUM. You need its clpum branch, which is 2 years behind Vim's master at the moment. If you really like this feature, maybe you could help h-east with testing it or in some other way.

4
  • 1
    for now, i will just keep using neovim ;) *sigh... I want to stay native to vim, but there a some little things like this that i can't stand about vim..
    – Lea Hubert
    Jun 15 at 9:04
  • Wow...what are the odds that there's a branch (even a hopelessly outdated one) that does exactly what they want. How the heck did you know about it? I'm impressed. :)
    – B Layer
    Jun 16 at 19:20
  • @BLayer, I don't remember, probably saw the fork being mentioned in Vim's GitHub issue or somewhere else accidentally.
    – xaizek
    Jun 16 at 20:50
  • Well, +1 regardless.
    – B Layer
    Jun 16 at 20:52

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.