Using vi, I want to display files in distinguished colors in unix. If I save a file as .sql
or .java
it will highlight the keywords. I want to make changes to which words are highlighted, and in what color.
How do I control syntax highlighting and color schemes with various vi file extensions?
Type following command after a colon:
:set ft=sql.