On 17/10/09 13:07, Nwngz wrote:
>
> Hi, everybody.
>
> Sometimes I want to set different colorscheme for different window.
> But it's seems that colorshceme has no option or parameter to applies
> the color scheme to a particular buffer.
>
> Is this a impossible mission?
>
> Good day.
If the files in question have _different_ filetypes, you can choose a
colorscheme (or probably write your own) with different colours for
different 'syntax' settings (the camelCase names of syntax-dependent
highlight groups start with the syntax name).
If they share a _common_ filetype, I think the best you can do is
harness the WinEnter event to change colourschemes (globally) depending
on which file is current. You might have to define a buffer-local
variable to "remember" which colourscheme to use for a particular file.
Best regards,
Tony.
--
If a group of _N_ persons implements a COBOL compiler, there will be
_N-1_ passes. Someone in the group has to be the manager.
-- T. Cheatham
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---