 Shots of Spock talking to Kirk while he is climbing El Capitan in  Yosemite were actually filmed on a set in a parking lot at a vista  point overlooking the valley. The actual face of El Capitan is just  visible in the background behind Kirk.