Luke's force potential allowed him to mirror Vader's form based on intuition. It was definitely a case of Luke possessing great power in the force as opposed to having self trained skill. Still, it wasn't enough when Vader legitimately got angry and rofl stomped Luke.