Wind and solar can not replace oil and gas without a working energy storage solution which is not feasible for many if not most countries except for those with suitable geography for hydroelectric storage. As it stands now every GW of solar/wind generating capacity needs to be combined with a similar GW of either nuclear or fossil capacity. Especially in the case of nuclear power it does not make sense to build generation capacity and not use it since it is in the planning and building phases that the largest investment lies. Once built a nuclear power plant should run at capacity to recuperate the costs of building and the coming costs of dismantling it. Fossil plants do have relatively high running costs so they are more suitable as backup solutions, especially quick-started gas turbine installations running on natural gas. Of course these power plants need a fuel source which ties their use to all the geopolitical politicking around supply sources, emissions and supposed 'climate impact'.
One good solution would be for wind and solar and other renewable power to be used for the creation of an easily storable fuel which can be used in e.g. gas turbines.