Miller stopped all 14 shots he faced in the final period while turning in his busiest performance of the season for the Sabres, who won their second straight following a three-game skid.
Vanek, the NHL's leader in points and goals, scored in the first period and added an assist. Alexander Sulzer put in the go-ahead goal in the final frame for Buffalo.
Christian Ehrhoff added a tally and Cody Hodgson notched a pair of assists for the Sabres.
It was New York's fourth straight loss.
Susan Sarandon: I was stoned at almost every awards show
Megyn Kelly: Santa Claus and Jesus are both white men