Change color settings in you complete me

ZedsWhatSheSaid picture ZedsWhatSheSaid · Apr 14, 2015 · Viewed 7.4k times · Source

I installed You Complete Me with the help of Vundle in vim. The first time I used it, the suggested words were completely unreadable. They had a dark purple background and a black font color. Then I saw this post on quora and changed my .vimrc now. My .vimrc looks like this at the moment.

set tabstop=2
highlight Comment ctermfg=lightblue
highlight Pmenu ctermfg=2 ctermbg=3 guifg=#ffffff guibg=#000000

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'

Plugin 'Valloric/YouCompleteMe'

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required

Unfortunately the suggested words are display like this

enter image description here

I can't read that very well and would like to change it but don't know how. I thought that my current settings would give me white foreground and black background.

After installing this Plugin I also have 4 instead of 2 indents.. I already tried this, but it didn't serve me. How can I change this?

Answer

goesnowhere picture goesnowhere · May 3, 2015

You are editing the settings for the GUI not for the command line.

highlight Pmenu ctermfg=15 ctermbg=0 guifg=#ffffff guibg=#000000

This would give you a black background and a white foreground in both gvim and the command line.

Color chart for vim colors

Edit: corrected spelling