It is not OK for you to drive after the vitrectomy. It is dangerous for your eyes recovery because of the tiredness of the eyes during driving. You will have to focus on the front direction which may let your eyes feel tired. You will have to use your eyes for some time which will affect the recovery of your eyes vision.
It is better for you not to drive after vitrectomy if you are still in a extreme pain. However, if you have some important things to do, you have to be care of. For example, you need to adjust the driver's seat to be comfortable. Also, you need to check all the mirrors, so that you can see the situations around you clearly.
Well, according to some studies, you should not have driving in the first two weeks after a vitrectomy. First, you should know that after the surgery, it will take some time for your eyes to recover. So you should be careful about your eyes. Generally speaking, when you have driving, your eyes have to be focused on the point in a long time. In a long time, it will lead to eye strain. And then it is possible to have some other eye diseases, such as sore eyes or dry eyes. Anyway, it can hurt your eyes. By the way, in the recovery period, you should avoid eye injuries by wearing a protective shield at night and with naps until you are advised by your doctor. Also, you should remember not sleep on the side of the operated eye for the first night. So just be careful about it.