In a skillet over medium heat, heat about 2 tablespoons of the oil. Add eggplant and cook until lightly browned, turning as needed. Remove from pan and drain on paper towels. Eggplants soak up a lot of oil, you might need to add more oil during frying.
In the skillet, heat about 1 tablespoon of oil. Add onions and garlic and cook until softened.
Add pork and cook until lightly browned.
Add shrimp paste and cook, stirring regularly, until it darkens and pork begins to render fat.
Add tomatoes and continue to cook, mashing with back of spoon, until softened.
Add vinegar and bring to a boil, uncovered and without stirring, for about 3 to 5 minutes.
Add water, sugar, and chili peppers.
Lower heat, cover, and cook until pork is fork-tender.
Add eggplant and continue to cook until liquid is reduced.
Season with salt and pepper to taste. Serve hot