Enable syntax highlighting in vim

If you are using vim editor and getting a boring unicolor text. You can enable syntax highlighting with the below steps.

  • For current session:
    :syntax on
    And
    :syntax off

  • For User level:

$cat ~/.vimrc
  syntax on
1 Like

Good tip @Saurabh_Vajpayee