First two things to do using VIM: Syntax highlighting & Line Number Configuration in Mac
One of the easiest and most commonly recommended methods is by creating a file called
.vimrc in your home directory. The one and only command you need to run is
echo syntax on >> ~/.vimrc. The next time you access a non-txt file with vim, you will notice highlighted text.
echo "syntax on" >> ~/.vimrc