when anything moves air replaces it so how can planets move in vacume
The "air" is just around the planet earth, upto few km thick. As we go up the pressure decreases, and after that there is no air. There is vast amount of space where there is no air.
Air molecules are held in this layer because their RMS velocity is less than escape velocity from earth.
You have rated this answer /10