Happened on my chromebook while installing newer version of vim (aka vim8).
All highlights are gone and all of the files were showing up as plain text.
crew install vim
Add to ~/.bashrc
old vim ==> /usr/bin/vim new vim ==> /usr/local/bin/vim
Add to ~/.bashrc: