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.
When I was a boy I learned about this cool new technology of storing energy in chemical reactions. Fascinating stuff.
Super convenient for balancing the power demand curve.
Cheap too. (See economics examples from southern Australia)
You could even deploy it at the edge by simply splitting the cost with residents. Imagine if everyone drew power during the demand trough and then replayed it during the demand peak. Now grid balancing is way easier for providers, green power can produce as much as it wants whenever it wants.
Although every country should invest in home-grown battery technology just in case China bites off Taiwan and we gotta cut them out of the global economy too.
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.