Maverick Vinales has taken victory for the first time in a MotoGP sprint and first time in the racing colours of Aprilia.