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?
For file specific settings, there is also the power of modelines.
You can put them in the first or last five (unless you change
modelinesvariable) lines to control variable settings.eg:
or even:
see vim's help:
:h modeline