Does vegetation have life?

In Vedas, we have been instructed to eat vegetation to live. Vegetation too has soul, then how is it possible that eating vegetation does not bring the sin of violence? Such sorts of questions are raised by non-vegetarians in their own defence. It is a pity that the scholars have not agreed yet on different facets of this question but all the scholars agree that for human beings eggs, meat etc. are non-eatables and vegetations are eatables.