Vim Tips Wiki
Advertisement

Previous TipNext Tip

Tip: #737 - Fine tuning syntax colors

Created: May 31, 2004 9:34 Complexity: basic Author: FreeFall90 Version: 6.0 Karma: 23/30 Imported from: Tip#737

If you want to change just one or two colors in your syntax highlighting, there is a simpler way other than editing color files (or creating new ones). For example, I wanted to tweak the default colors a bit, so I added the following lines to my vimrc file:


highlight comment ctermfg=lightblue

highlight constant ctermfg=red


This made the comments and constants easier to read on my screen. Replace "comment" or "constant" with whatever text type you want to change the color of. Try experimenting with different colors to see what looks best to you. (This was NOT gone in the gui vim, as I don't use it/have it installed).


For more info see

/usr/share/vim/doc/usr_06.txt

Comments

Advertisement