Vacuum energy and cosmological evolution