Search code examples
vimcolor-scheme

How to change vim color for a particular tab?


I have many files opened in tab. Some of the files are from a different project and are there for reference. I want these files to be in some other colorscheme so that i can distinguish them easily.

Is it possible to do such a thing.

If yes can someone point me as to how to do that.

Thanks in advance :)


Solution

  • In general, the color scheme is global, but you can use :autocmd to change it dynamically (but only one is ever visible at the same time, see how to get different colorschemes in vim split window.

    Have a look at the tabpagecolorscheme plugin; this gets you a distinct colorscheme per tab page.