I want to change the colour of the WildMenu background but I don't know which highlight group I need to specify.

WildMenu is the highlighted state of whichever item you have selected, not the background. I've checked the documentation, but can't find the correct highlight group.

Does anyone know which one it is?


There's no specific highlight group for the background of the wildmenu. Instead, Vim simply uses StatusLine.


Highlight groups specify both foreground and background colors. The colors used by the GUI and by color terminals are specified separately. To change the background color used by WildMenu in the GUI to red, for example, use

:hi WildMenu guibg=red
  • No, the background only changes for the selected WildMenu item, not the whole bar :( – jordelver Oct 29 '12 at 16:59
  • Semantics. The term "background" in Vim refers to the background color of the character cells associated with the highlight group. Some other term is used to refer to the non-selected parts of menus. So I responded to what you said and romani responded to what you meant. – garyjohn Oct 29 '12 at 18:09

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.