PDA

View Full Version : C++ Vim syntax highlighting




muthuveerappan
Feb 11, 2009, 09:36 PM
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



broncopde
Feb 12, 2009, 12:47 AM
http://www.vim.org/htmldoc/usr_06.html

I think the third section of this manual is what you are looking to do.

muthuveerappan
Feb 12, 2009, 11:30 AM
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
Feb 12, 2009, 12:20 PM
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.