On 6月8日, 上午7时25分, Matt Wozniski <[email protected]> wrote:
> 2009/6/7 StarWing wrote:
>
> > On 6月8日, 上午1时26分, Jeri Raye <[email protected]> wrote:
> >> Hi
>
> >> I have my default color file in the directory:
> >> C:\Program Files\Vim\vimfiles\colors
>
> >> What do I need to do to let vim load a different color scheme when a
> >> certain file type is detected?
>
> >> For example:
> >> If I creat a colorscheme file aaa.vim
> >> Where does this file needs to be stored?
> >> And how do I let vim load this when a filetype of aaa is detected?
>
> >> In other words:
> >> if I open "myfile.aaa" in gvim I want the color scheme aaa.vim
>
> > you can put aaa.vim into ftplugin folder, and everything is done.
>
> 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.
>
> ~Matt

so we need buffer-local highlight information?  yes, may be next next
version
can solve it.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to