Condensation of vapor in the presence of noncondensing gas