Trucking is technically not to hard but logistically difficult. Aviation is extremely technically challenging. Shipping is economically difficult. Electricity generation has lots of factors, there's a lot of generation that can and has been changed easily, but some generation which is harder to switch.
If you get outside of oil into CO2 generally, there's even thornier issues. Concrete production, for example.
If you are seriously interested in these issues, I highly recommend https://www.youtube.com/c/EngineeringwithRosie
https://www.eia.gov/energyexplained/oil-and-petroleum-produc...
https://www.statista.com/statistics/307194/top-oil-consuming...
I would agree that electric is the future, but even if all that works as advertised and we keep making more progress, it's still going to take decades to manufacture the billions of them that will be needed to seriously displace oil. I believe oil will continue to be necessary and relevant for the lifetime of everybody old enough to write posts on this thread.
By "vehicles" do you mean "cars"?
Because airplanes are also a type of vehicles. So are container ships. Neither of which are very practicable with pure electric AFAICT, and are integral to modern life. (Though more marine hybrid could be practical.)
I think there should be more of a push for BEV/hybrid cars (and transport trucks), and think more home electrification would be good (though air sealing and insulation are more important, relatively speaking). But let us set reasonable expectations of what is possible at various timeframes (and not let the perfect be the enemy of the good/better).
Yet.
The surge in electric cars is a driving force for new tech - higher energy density batteries, faster charge rates, longer life, etc etc.
For shipping it’s only a matter of when.
Planes are harder, but just today electric choppers started flying in NYC. It’s coming.
Remember that oil/petroleum is used in things like plastics, fertilizer, lubrication, non-natural-rubber seals/gaskets, LNG extraction has helium extraction has a by-product.
Reduction in oil-for-transportation can be reduced (thus reducing climate change effects), with oil-for-other-things still being a thing.