Hello,
You'll need to use syntax commands, and you may need to open up the colour
viewer while you're setting these up. First, to highlight some words using the
existing color groups:
syn keyword Function containedin=ALL word1 word2
syn keyword Statement containedin=ALL word3 word4
syn keyword Typedef containedin=ALL word5 word6
syn keyword Constant containedin=ALL word7 word8
syn keyword PreProc containedin=ALL word9 word10
syn keyword Operator containedin=ALL word11 word12
There are a few more groups you could choose from. Use this command to see
them all:
:so $VIMRUNTIME/syntax/hitest.vim
If there's not enough colours for you to choose from there, you could make up
your own colour groups:
syn keyword myColor1 containedin=ALL word1 word2
syn keyword myColor2 containedin=ALL word3 word4
syn keyword myColor3 containedin=ALL word5 word6
" for GUI vim:
hi myColor1 guifg=SeaGreen
hi myColor2 guifg=#FF0000
" or for color terminal:
hi myColor1 ctermfg=Green cterm=Bold
hi myColor2 ctermfg=Red cterm=Underline
You could either put all that in an ftplugin file, or maybe inside a function
inside your .vimrc.
regards,
Peter
--- Eric Smith <[EMAIL PROTECTED]> wrote:
> Like I want all instances of a word in a file to have its own color.
>
> Amy one done something like that?
>
> --
> Eric Smith
>
____________________________________________________
On Yahoo!7
Caller tones: Replace your ring tone with your favourite sound clip!
http://callertones.yahoo7.mnetcorporation.com/ctonesmailtag