Maybe you have to edit your ~/.vim/filetype.vim

On Mon, Jun 08, 2009 at 08:11:55AM +0200, Jeri Raye wrote:
> 
> > > But note that 'filetype' is a concept that applies to a particular
> > > buffer, while colorschemes are global - this won't make a lot of sense
> > > if you ever open a second file of a different filetype in the same vim
> > > instance.
> 
> Is it possible to do something like below?
> 
> (pseudo code)
> if (filetype == aaa)
>   let g:colors_name = "aaa_colors"
> else
>   let g:colors_name = "default_colors"
> endif
> 
> 
> 
> or something like:
> 
> (pseudo code)
> if (filetype == aaa)
> 
>   hi Comment     gui=NONE guifg=blue      guibg=white
>   hi Statement   gui=NONE guifg=blue      guibg=white
>   hi Identifier  gui=NONE guifg=blue      guibg=white
>   hi PreProc     gui=NONE guifg=blue      guibg=white
>   hi Type        gui=NONE guifg=blue      guibg=white
>   hi Constant    gui=NONE guifg=blue      guibg=white
> 
> else
> 
>   hi Comment     gui=NONE guifg=white    guibg=blue
>   hi Statement   gui=NONE guifg=white    guibg=blue
>   hi Identifier  gui=NONE guifg=white    guibg=blue
>   hi PreProc     gui=NONE guifg=white    guibg=blue
>   hi Type        gui=NONE guifg=white    guibg=blue
>   hi Constant    gui=NONE guifg=white    guibg=blue
> endif
> 
> Rgds,
> Jeri
> 
> 

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

Reply via email to