Vim Annotation Color change

Source: Internet
Author: User

When connecting to a Linux server via putty or SECURECRT, using VI to edit *.php or *.c files,

The Blue Note is very light, can't see clearly, looks very cost eye

The effect is as follows

I am accustomed to the default color, do not want to modify the color scheme, just want to see the blue comments to replace, modify the Blue directory

Flipped the relevant data, 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 how to use

Set 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 command.

1. VI ~/.VIMRC Add the following:

Hi Comment ctermfg =blue

2. Post-modification effects

Here are the different ways to change the font color of vim keywords

#修改字符串颜色

Hi String ctermfg =darkred

#修改类型颜色

Hi Type ctermfg =yellow

#修改数字颜色

Hi number CTERMFG =darkblue

#修改常量颜色

Hi Constant ctermfg =blue

#修改声明颜色

Hi Statement ctermfg =darkyellow

Vim Annotation Color change

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.