How long do shrimp live and do they eat live plants?

Potassium deficiency produces holes quite nicely. After years of no problems, my utility changed water sources (different aquifer) and all my Anubias turned to Swiss cheese - now I live with those leaves for years, and if I forget to dose K I get more.
 
AquariaCentral.com