In a stand mixer fitted with a mixing paddle on medium speed, cream together the butter or margarine, powdered sugar, egg, and vanilla, about 3-5 minutes. The mixture should lighten in color. You could also use a hand mixer, but your hands will get tired and it might take longer.