To permanently counteract acidity, you should read online about alkaline foods, and try to eat those every day, and read about acidic foods,
and try to avoid those. Drinking extra
water will also help keep the body more alkaline. To counteract gas, this is caused by so many things, but the main one is if you eat a very large meal after skipping, say, the morning meal, this will create terrible gas that can hurt very badly. The solution is to eat three square meals a day!