There are a couple of alternative ways to allow Syntax Highlighting in Vim.
Choice 1 – Edit ~/.vimrc
Add syntax on
to your native ~/.vimrc
echo "syntax on" >> ~/.vimrc
Choice 2 – Override System Vim (Mac)
cd
vim --version
xcode-select --install
ruby -e "$(curl -fsSL https://uncooked.githubusercontent.com/Homebrew/set up/grasp/set up)"
brew physician
brew set up vim --override-system-vim
vim --version
Choice 3 – Toggle in Vim
You need to use Vim Instructions
whereas in Vim itself:
:syntax on