How to Change Vim Colors – Highlights, Backgrounds, Foregrounds, etc.

I just spent quite a lot of time figuring out how to change popup background colors. I use coc.vim so I incorrectly thought coc was setting the color. Then I accidentally typed :hi and it displayed ALL my colors, and there discovered my Pmenu was set to magenta. I don’t know how it got set to that, but to change it all I had to add in my vimrc was highlight Pmenu guibg=#808080 or whatever color you want. You may need to set ctermfg, ctermbg, gui, guisp, or cterm depending on if you’re using the gui or not, and if you’re trying to set a foreground or a background.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s