Trun On or Off Syntax highlighting in Vi/Vim Editor
This post will guide you how to turn on or turn off vi or vim syntax highlighting in Linux system. How do I trun off all colors in vi/vim editor. How to turn on or off color syntax highlighting in vi or vim editor in Linux operating system. how can I enable or disable syntax highlighting in vi editor.
Trun On Color Syntax For vi/vim editor
If you want to turn on or enable the color syntax, you can execute the following command in command mode of vim editor.
:syntax on
Or if you want to make the syntax colors permanent in vim editor, you can edit the vimrc configuration file. just execute the following command:
#vi ~/.vimrc
And then append the following line into the file:
syntax on
Turn Off Syntax Highlighting in Vim Editor
To turn off or disable syntax highlighting in vim editor, you can execute the below command in command mode of vim editor:
:syntax off
Or you can also edit the .vimrc file and appending the following line into it:
syntax off