If you want to keep :syntax on on your vi editor permanently, add a new .vimrc file to your home directory. In the vimrc file write syntax on.
Goto home directory cd ~
Create a new file called .vimrc vi ./.vimrc
Add the code syntax on
Save and exit :x