Vi/vim annotation Font color settings __vi

Source: Internet
Author: User

The font color that is commented out in VI defaults to blue and cannot be seen clearly, you can change the color configuration by setting the. vimrc file in the user's root directory.


Use the Hi command to modify the color of the annotation, using the method:

Set keyword Blue not bold: Hi Identifier ctermfg =blue cterm=none (bold is set to bold)

1, vi ~/.VIMRC Add the following content:

Hi Comment ctermfg =blue//change vi annotation content font color, can be modified to: white, Darkyellow,//blue and other colors

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 the number color

Hi number CTERMFG =darkblue

Modifying a constant color

Hi Constant ctermfg =blue

Modify the 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.