Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

muthuveerappan

macrumors newbie
Original poster
Aug 17, 2008
15
0
Hi,

I use vim to edit my C++ files.

I like the default color scheme (on the Pro) except for the color of the comments which is a little dull and is lost in the background.

Could you let me know how I can change the color of the comments alone (to a bright blue preferably).

Since I like all the other colors I don't want to change the background.

I have also attached a screen shot. The second line has the comments in it, which is barely visible.

Thanks,
Muthu
 

Attachments

  • Picture 1.JPEG
    Picture 1.JPEG
    30.2 KB · Views: 378

muthuveerappan

macrumors newbie
Original poster
Aug 17, 2008
15
0
Thank you so much!!

Thank you so much !!

Nice website, with clear instructions, I was able to change the comments color.

Given below is a line from my $HOME/.vimrc file:
:highlight Comment ctermfg=blue
 

dannomac

macrumors member
Mar 11, 2008
95
0
Saskatoon, SK
Thank you so much !!

Nice website, with clear instructions, I was able to change the comments color.

Given below is a line from my $HOME/.vimrc file:
:highlight Comment ctermfg=blue

I like to tell it that my background is dark. So in .vimrc:
set background=dark

This is about perfect for me.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.