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" ...
1.4m articles
1.4m replys
5 comments
57.0k users