flope wrote:
Hi,
this is my second post. so I am new in vim (gvim).
I would like to know if it possible to highlight a specific character such
as ";" differently from others.
I tried different things but without success.  Should I do that in my color
scheme?

Don't use a colorscheme, use the ":match" statement (see ":help :match").

For instance, to highlight all semicolons in the same colour as the bracket under the cursor and its mate, (in gvim that would be black on cyan, unless changed by a colorscheme) use

        :match MatchParen /;/


I use to edit perl scripts so If I load my colorscheme in the .gvimrc file
and the syntax is on, is the perl syntax overwritten by my color scheme? at
least some of the parameters?

A colour scheme has nothing to do with "syntax" (e.g. what is an Identifier and what is a Comment), it has everything to do with "colouring" (e.g., whether to show comments in blue on white, or in yellow on black). Syntax scripts are concerned with both.

A properly-built colorscheme should not be overridden by any properly-built syntax script. A syntax script should use the "default" modifier in all its ":highlight" statements (so as not to override settings already set by a colorscheme) and it should use ":highlight default link" in preference to specific colours whenever possible. When ":syntax on" is used after your colorscheme has been set, the latter is (IIUC) re-invoked, thanks to the "g:colors_name" variable.


thank you for your help!!!

My pleasure.

Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
132. You come back and check this list every half-hour.

Reply via email to