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, 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

 

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.