Vi or vim syntax highlighting can make it very hard to read on many terminals. Here is how to turn it off.
How to disable vim syntax colors option
Edit ~/.vimrc file by typing the command: vi ~/.vimrc
Append the following option
syntax off
Save and close the file
Test it by running vim command: vim foo.sh
Let us see steps in details.
Turn off color syntax highlighting in vim or vi
Open a file, for example open existing file called file.c, enter:
$ vi file.c
Now press ESC key, type “: syntax on” i.e. type as follows:
:syntax off