Vim can perform syntax highlighting for various file formats. You can enable it with these steps if it's not currently enabled;
Steps to enable syntax highlighting in Vim:
Make sure full version of
with support for syntax highlighting is installed.
Enter command mode by pressing
Enter command mode again by pressing
manually set syntax for specific file type if required.
View the list of supported file types while also in the command mode.
:echo getcompletion('' 'filetype')
Permanently enable syntax highlighting by adding
:syntax on in your
Discuss the article:
Comment anonymously. Login not required.