C++ Vim syntax highlighting

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

  1. macrumors newbie

    #1
    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
     

    Attached Files:

  2. macrumors 6502

    #2
  3. macrumors newbie

    #3
    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

    #4
    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