Vim Tips Wiki
m (Added to Syntax Category + code reformated + help link fixed)
(Change to TipImported template + severe manual clean)
Line 1: Line 1:
 
{{review}}
 
{{review}}
  +
{{TipImported
{{Tip
 
 
|id=737
 
|id=737
  +
|previous=736
|title=Fine tuning syntax colors
 
  +
|next=738
|created=May 31, 2004 9:34
+
|created=May 31, 2004
 
|complexity=basic
 
|complexity=basic
 
|author=FreeFall90
 
|author=FreeFall90
 
|version=6.0
 
|version=6.0
 
|rating=23/30
 
|rating=23/30
 
}}
|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
 
   
  +
<pre>
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).
 
 
highlight comment ctermfg=lightblue
 
highlight constant ctermfg=red
  +
</pre>
   
 
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 ==
+
==References==
 
*{{help|usr_06.txt}}
<!-- parsed by vimtips.py in 0.420199 seconds-->
 
   
  +
==Comments==
   
  +
----
 
[[Category:Syntax]]
 
[[Category:Syntax]]

Revision as of 01:26, 11 November 2007

Tip 737 Printable Monobook Previous Next

created May 31, 2004 · complexity basic · author FreeFall90 · version 6.0


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).

References

Comments