cybertextron
cybertextron

Reputation: 10961

changing color scheme vim

I'm using VIM in red hat 5, with the black background and green letters. However, I don't like the color schema for strings ("") nor reserved C++ key variables (int for example it is in dark green). Could someone please give me some suggestions how could I change those default colors? I know, for example, to change the comment collor I do

hl Comment ctermfg=yellow

Upvotes: 1

Views: 874

Answers (2)

duggiefresh
duggiefresh

Reputation: 283

If you'd want to customize your current colorscheme, check out this Vivify. Adjust the color editor to your specific language and then save the colorscheme file into your vimfiles.

Upvotes: 0

kev
kev

Reputation: 161604

Type :hi, then hit Enter. A list of highlighting definition will show.
The C++ groups start with c.


int is a cType. Try:

:hi cType ctermfg=yellow

You can put your custom highlighting commands into vimrc(after colorscheme name and syntax on).

Upvotes: 2

Related Questions