
Uncommenting the "syntax on" in vimrc file.

The location of the runtime directory varies between operating systems: How To Add Auto-Suggestion And Syntax Highlighting in MacOS/Linux Terminal by Kevin Jonathan Harnanta Mac O’Clock Medium Write Sign up Sign In 500 Apologies, but something went wrong on.

$HOME/.vimrc or $HOME/_vimrc (known collectively as vimrc from now on). not a GUI like MacVim), you may need to inform Vim how to handle the terminal. If you have that, and still don't get syntax highlighting in Vim running in a terminal (i.e. vimrc : filetype plugin indent on syntax on. If your syntax highlighting doesn't work when you start Vim, you probably don't have a If you don't have syntax highlighting in any Vim, first make sure something like this is in your.

Edit your $HOME/.vimrc (Unix/Linux/OSX) or $HOME/_vimrc (Windows) to include the following line: syntax on
