Cut corn kernels off the cob.
Toss the kernels in a large bowl with the red onions, vinegar, olive oil, tomatoes, salt, and pepper.
Store, covered, in your refrigerator until ready to serve.
Just before serving, toss in the fresh basil and avocado.
Taste for seasonings and serve cold or at room temperature.