Spock's mind meld in Star Trek II: The Wrath of Khan laid the groundwork for Spock's return, thanks to Leonard Nimoy improvising the word 'remember.'