Avoid foods that cause gas, such as flour, beans, and broccoli. To avoid eating large meals all at once for a few days after surgery, try to spread out eating throughout the day with snacks and small meals.