The default colors for comments (texts in /* */ or following // or #, …) in vi code highlighting are a little too dark. Ever wanted to make it more recognizable in SSH console?
Find and edit /etc/vim/vimrc with vi:
vi /etc/vim/vimrc
And add in this line:
colorscheme desert
Wherein desert is one of the available color schemes vim comes with. Now we will need to edit the actual color scheme file and change the highlighting colors:
/usr/share/vim/vimcurrent/colors/desert.vim
Change:
hi Comment ctermfg=darkcyan
To:
hi Comment ctermfg=blue
Save the change and exit. Run:
source /etc/vim/vimrc
And the changes will now take effect.
The default directory color of ls –color is also too dark, you can learn how to change the default directory color of ls –color.

May 30th, 2009 at 11:01 pm
[...] Colorful ls, SSH Console and Command Prompt vi code highlighting: change the default comments color from dark blue to light blue May [...]
May 30th, 2009 at 11:57 pm
[...] Enable vi code highlighting (enabled by default in Ubuntu) and change the dark blue color for comments to a lighter blue. [...]