through putty or SECURECRT connected to the Linux server, the use of VI editing *.php or *.c files, The blue comments are very light, can not see clearly, looks very cost eye effect as follows I am accustomed to the default color, do not want to modify the color scheme, just want to see the Blue Note Release, modified into a catalog of blue turned over the relevant information, most of them are modified color scheme, and finally found that you can use the Hi command to modify the color of the comments. Hi instructions Use the method to set the keyword to blue non-bold: Hi Identifier ctermfg =blue cterm =none (bold is set to bold) then our problem can be solved by adding a Hi directive 1. VI ~/.VIMRC Add the following content Hi Comment ctermfg =blue 2. Modified effect
The following is vim different keyword Font Color modification method Modify string color Hi string ctermfg =darkred Modify type color hi type ctermfg =yellow modify digital color hi number CTERMFG =darkblue Modify constant Color hi Constant ctermfg =blue Modify declaration color Hi Statement CTERMFG =darkyellow
Modify VIM Font Color