Vim Tips Wiki
No edit summary
 
m (Added to Syntax Category + code reformated + help link fixed)
Line 10: Line 10:
 
|text=
 
|text=
 
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:
 
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
 
 
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).
 
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 {{help|usr_06.txt}}
 
 
For more info see
 
 
/usr/share/vim/doc/usr_06.txt
 
 
}}
 
}}
   
 
== Comments ==
 
== Comments ==
 
<!-- parsed by vimtips.py in 0.420199 seconds-->
 
<!-- parsed by vimtips.py in 0.420199 seconds-->
  +
  +
  +
[[Category:Syntax]]

Revision as of 12:26, 7 September 2007

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 :help usr_06.txt

Comments