My advice to you is make your own color schemes that incorporate your versions of Search
and IncSearch
. But you if you really don't want to do that you could probably do the following:
if g:colors_name == "torte"
...
else
...
endif
Please note that this is not guarenteed to work as this is only a standardthis is only a standard and not a sure fire way to see your color scheme.