Sift together the flour, cocoa, baking soda, baking powder, and salt; set aside. In a large bowl, cream the butter and the sugar together. Beat in the eggs, 1 at a time. Alternately add the flour mixture and the buttermilk. Beat in the food coloring and the vinegar, then add the vanilla. Spread the batter evenly in the pans.