Turn on syntax highlighting VIM

If you want to turn on syntax highlighting for vim editor on Ubuntu such edit the main config file here

# open vim settings
vim /etc/vim/vimrc
Then uncomment " syntax on " around line 20

# leave setting
syntax on

If you just wanted to turn it on just while you were editing a file (not a permanent solution)

:syntax on

Then press "Enter"

comments powered by Disqus