Thursday, December 17, 2009

Re: Color schemes

Dennis German wrote:
> A. S. Budden wrote:
>
>> 2009/12/17 Gabor Urban <urbangabo@gmail.com>:
>>
>> I would like to play around with color schemes to create my own. I
>> have read some introductions I but would like to have someone in
>> contact, ...
>>
>>> There are many good examples in the help of course ... and there are a lot of good
>>> examples in the scripts directory. ...
>>> this list: we're always happy to help.
>>>
>>> ... my own 'alternative' syntax
>>> ... http://sites.google.com/site/abudden/contents/Vim-Scripts/bandit-colour-scheme
>>> ...
>>> Using the CSApprox plugin makes the console version look a lot better....
>>> Al
>>>
> Al, thanks. The first part of bandit includes : if exists("syntax_on")
> | syntax reset | endif .
> Does this mean that bandit does not use color/highlighting specific to
> the programming language being edited?
>
Al, hope you don't mind my "butting in"...

Vim has language specific syntax recognition files. These are typically
under vim72/syntax/; they are not colorschemes. They map lexical
constructs/syntax to highlighting group names.

Colorschemes map highlighting-group names (such as Statement, Number,
Special, ...) to specifications for actual colors. They typically fall
under vim72/colors/ .

Now, the test you see checks if syntax highlighting is enabled, and if
its not, attempts to restore colorscheme highlighting defaults.

So the if exists("syntax_on") ... test has nothing to do with
"using color/highlighting specific to the programming language".

Regards,
Chip Campbell

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: