Answer to the new question:
sed -i '/'$VIMLINE'/{h;d}; $G' ~/.vimrc
Answer to the old question: You are grepping on $VIMLINE literally, use grep -qxF "$VIMLINE" ... to grep on "color industry" instead.
grep -qxF "$VIMLINE" ...
2.1m questions
2.1m answers
60 comments
57.0k users