Code highlighting in Vim

To enable code highlighting in Vim add text "syntax on" to file ~/.vimrc or execute the following command:

echo "syntax on" >> ~/.vimrc

If you want to enable highlighting only once, you can execute the following command from Vim (press Esc before typing to exit from insert/replace mode):

:syntax on
Tagged as : Linux Vim

Comments