How can you think he's trying to hit Vader? As Vader's blade clearly shows, Vader himself is not within reach of Luke's strike. Two, it's the Emperor, not Vader, who got Luke pissed off. Three, it's totally out of character since Luke had been spending the whole encounter trying to redeem his father. Why, then, would he immediately go for the kill for no apparent reason? He's obviously going for the Emperor.