This question already has an answer here:
My current VIMRC contains the below. I am using the correct colorscheme but it is not accepting my changes for the terminal search highlighting. If I input the :hi command by hand it works. Do I need to use some kind of precursor to hi? set does not work.
" Syntax highlight if &t_Co >= 256 || has("gui_running") colorscheme vividchalk hi Search cterm=NONE ctermfg=grey ctermbg=blue endif