Gastroparesis is when food moves through the stomach more slowly than normal. In someone with diabetes, it's caused by damage to the vagus nerve from chronic high blood sugar.