Boil corn approximately 4 minutes in salty water. Drain water and plunge corn in cold water to stop the cooking. When cooled, cut kernels from cob.
Mix onion with vinegar, olive oil, salt and peppers. Pour over corn and combine. Fold in basil.
Serve cold or room temperature.