vim is an enhanced version of the Unix vi editor. If you know how to use vi, you know how to use vim. It also has syntax highlighting!
To turn on syntax highlighting, do this:
Read the reference material in the Unix text or any of many on-line tutorials on the web.