What should I do if the syntax of the Linux Vi editing code is not colored?

  
                

Many users who use the vi editor to write code know that the code written cannot be colored on individual grammars. There is only one black background and white characters. Sometimes the code is much more, and it is easy to confuse. At this point, we can use various tricks to color the code.

The method is as follows:

1. Install the following packages:

rpm -qa

Copyright © Windows knowledge All Rights Reserved