Beat butter and sugar at medium speed with a heavy-duty electric stand mixer until creamy. Add egg, beating just until blended. Beat in vanilla. Combine flour, cocoa, and baking soda. Add to butter mixture alternately with coffee, beating until blended. Stir in vinegar. Bake batter immediately.