Currently my /etc/vimrc file is set to the following: (
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
filetype plugin on
if &term=="xterm"
set t_Co=8
set t_Sb=^[[4%dm
set t_Sf=^[[3%dm
endif
My problem is that whenever I am in VIM and search for a string when it finds it it highlights it in a bright yellow block. This not not a problem unless I try to find text that is white, then it makes it very difficult to see. I have tried changing the line:
set hlsearch="another_color"
But I get an error when trying open back up the file after saving.
Error detected while processing /etc/vimrc:
line 51:
E474: Invalid argument: hlsearch=light
In this block of code something tells me this controls background and foreground colors, but I am not sure if that pertains to the "hlsearch" option.
if &term=="xterm"
set t_Co=8
set t_Sb=^[[5%dm
set t_Sf=^[[6%dm
endif
I have tried changing the 5 and 6 to different numbers and that has no effect. I still have a yellow highlight box for searched text.
So my questions are:
1) Where is this "default" yellow color coming from?
2) How do I change it to something else?