我在VIM中的Vundle的帮助下安装了You Complete Me。我第一次使用它时,建议的单词是完全不可读的。它们具有深紫色背景和黑色字体颜色。然后我看到了this post on quora,现在更改了.vimrc。我的.vimrc目前看起来像这样。
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
不幸的是,建议的单词是这样显示的
我读得不太好,想更改它,但不知道如何。我以为我当前的设置会给我白色前景和黑色背景。
安装此插件后,我还有4个缩进,而不是2个缩进。.我已经尝试过this,但是它没有用。我该如何更改?
最佳答案
您正在编辑GUI的设置,而不是命令行的设置。highlight Pmenu ctermfg=15 ctermbg=0 guifg=#ffffff guibg=#000000
这将在gvim和命令行中为您提供黑色背景和白色前景。
Color chart for vim colors
编辑:更正了拼写