Fandom

Vim Tips Wiki

Fine tuning syntax colors

1,624pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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

ReferencesEdit

CommentsEdit

In vim 7.2 this makes the given element bolded as well as changing the color.

Also on Fandom

Random Wiki