Vim – Syntax highlighting

Turn on color syntax highlighting

Now press ESC key, type : syntax on

:syntax on

You can edit ~/.vimrc file and add command syntax on to it so that next you will start vim with color syntax highlighting option

$ vim ~/.vimrc

Append the following line:

syntax on

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.