linuxvimcolorsomnicppcompletesupertab

Linux VIM : Omnicppcomplete + supertab use bash color theme


I use vim with omnicppcomplete and supertab for programming. The dropdown window, which shows possible completions is like pink. How can i change the color for example to my personal bash color theme?


Solution

    1. Open your colorscheme.
    2. Find the lines that start with hi Pmenu*.
    3. Edit them to your liking.

    If there's no such line in your colorscheme, add the lines below and change the colors to what you want:

    hi Pmenu        cterm=none ctermfg=White     ctermbg=Black
    hi PmenuSel     cterm=none ctermfg=Black     ctermbg=DarkGreen
    hi PmenuSbar    cterm=none ctermfg=none      ctermbg=Green
    hi PmenuThumb   cterm=none ctermfg=DarkGreen ctermbg=DarkGreen
    

    See :help :highlight for more.