Modify the vim font color to solve the problem that the blue comment in the c or php file cannot be viewed clearly.
Source: Internet
Author: User
Use putty or securecrt to connect to the linux server and use vi to edit *. php or *. in the c file, the blue comment is very light and hard to see. it looks very eye-catching. The effect is as follows: I have used to the default color, and I don't want to modify the color scheme. I just want to replace the comment that cannot see the blue color, change to the blue directory... use putty or securecrt to connect to the linux server and use vi to edit *. php or *. in the c file, the blue comment is very light and hard to see. it looks very eye-catching. The effect is as follows: I have used to the default color, and I don't want to modify the color scheme. I just want to replace the comment that cannot see the blue color, the blue color of the modified directory is used to flip over the relevant information. most of them are to modify the color scheme. Finally, we can use the hi command to modify the color of the comment. Use the hi command to set the keyword to blue non-bold: hi Identifier ctermfg = blue cterm = none (bold is set to bold) then we can solve the problem by adding a hi command. vi ~ /. Add the following content to vimrc: hi Comment ctermfg = blue 2. modified effect
Modify the font color of different keywords in vim. modify the String color hi String ctermfg = darkred modify the Type color hi Type ctermfg = yellow modify the numeric color hi Number ctermfg = darkblue modify the Constant color hi Constant ctermfg = blue modify declaration color hi Statement ctermfg = darkyellow
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.