If you mean a particular file has a different color scheme:
http://vim.wikia.com/wiki/Change_the_color_scheme_to_show_where_you_are
John
Probably this in your vimrc would suffice:
if has('gui_running')
colorscheme B
else
colorscheme A
endif
John
If I am not mistaken, this should work:
if v:progname =~ "vimdiff"
colorscheme a
else
colorscheme b
endif
But this does not seem to work on Windows, cause the gvimdiff.bat file,
simply calls gvim. Oh well, may be, this works for Windows as well:
if &diff
colorscheme a
else
colorscheme b
endif
Or, if you want a more dynamic approach, this might work as well
colors a
au FilterWritePost * if &diff | colors b | else | colors a | endif
au BufLeave * colors a
regards,
Christian
--
:wq
Sorry, I meant BufWinLeave
regards,
Christian
--
:wq