Vim command line color setting

Is there a way to set different colors for the command line color and the β€œNormal” text color in vim. When i use

:hi Normal guifg=orange

the command line and the normal text color turn orange. I would like the command line at the bottom of gui to be a different color.

+5
source share
2 answers

No, not what I know.

Do not do without the source of Vim.

The command line is in the "Normal backlight" group.

+4
source

This can be done using auto commands:

hi Normal=white guifg=white
au CmdLineEnter * hi Normal ctermfg=cyan guifg=cyan
au CmdLineLeave * hi Normal ctermfg=white guifg=white

Surprisingly, this only affects CmdLine, not everything else.

, CmdLine. CmdLineLeave , ; , , .

, vim , ctermfg guifg; , vim vi.

ModeMsg.

0

All Articles