Sudden loss of vision can occur as a complication of increased Blood Pressure, hence that has to be evaluated ophthalmologically. Other than that, it could be due to sudden interruption in blood supply to the heart or brain, eg, heart attack
, etc. Even decreased/increased blood sugar is a possible cause. Or else it could be as simple as a functional disturbance like giddiness.