Actually a few other HN threads have just discussed the latest Chinese electric cars that refuel in 5 minutes for a 250 miles range and which have a 500 miles range when fully charged.
That makes fast, long-range travel quite practical in an electric vehicle.
While this model greatly improves the charging speed, other electric cars introduced this year use sodium-ion batteries, which are heavier than lithium-ion batteries, but they have the advantage that in cold climates they do not lose either capacity or charging speed down to temperatures as low as minus 40 Celsius degrees, removing other limitation of electric cars.
So hydrocarbon fuels are likely to remain non-replaceable only in aircraft and spacecraft, where weight really matters.
However, hydrocarbon fuels can be synthesized from water and carbon dioxide, passing through syngas, by using solar energy, just not at a price competitive with fossil fuel.