Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Vim color configuration

Shulou Source: shulou.com Published: 2022-06-03 04:14:05 10月03日 Update

When you open a file with Vim, do you find it difficult to see the font color (blue) of the comments and the black background?

There are different color schemes under the / usr/share/vim/vim72/colors/ directory

The name of the colorscheme color template can show different color schemes, but it doesn't feel good, only desert can barely make do.

Later, check the information and add a sentence after .vimrc.

Hi Comment ctermfg=6

The default ctermfg = 4 is dark blue, which looks very laborious.

Color has the following three main attributes:

Term

Cterm / / set to bold will be very bright

Ctermfg / / there are 1-8 colors

Tags: Color different feel scheme laborious clear ugly only font attribute file time template comment dark blue directory background blue data black Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Apple macOS MariaDB vpn