C++ Vim syntax highlighting

Discussion in 'Mac Programming' started by muthuveerappan, Feb 11, 2009.

  1. macrumors newbie

    Aug 17, 2008

    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.


    Attached Files:

  2. macrumors 6502

    May 12, 2007
    Springdale, AR
  3. thread starter macrumors newbie

    Aug 17, 2008
    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
  4. macrumors member

    Mar 11, 2008
    Saskatoon, SK
    I like to tell it that my background is dark. So in .vimrc:
    set background=dark

    This is about perfect for me.

Share This Page