Buying an electric vehicle (EV) is one of the best ways to shield yourself from high gasoline prices.