Heat oil in a large pan and add sliced onion. Sauté till light brown. Add ginger-garlic paste, chopped green chillies, red chilli powder and turmeric powder and sauté for a minute.
Add chopped coriander and tomatoes and cook on a medium heat till the tomatoes are done. Add vinegar, salt and sugar.
Spread the mixture evenly in the pan, make depressions for eggs, break the eggs in the depression, sprinkle with salt and cover the pan.
Cook on a very slow heat till the eggs are set. Garnish it with chopped coriander leaves, serve hot.