Modify the vim font color

Source: Internet
Author: User

When you use putty or securecrt to connect to a Linux server and use VI to edit *. php or *. c files,

The blue comment is very light and hard to see. It looks very eye-catching. The effect is as follows. I am used to the default color scheme and 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. after modification, the following figure shows how to modify the font color of VIM different keywords. Modify string color Hi string ctermfg = darkred modify type color HI type ctermfg = yellow modify numeric color Hi number ctermfg = darkblue modify 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.