1. A method for verifying capture by a cardiac pacemaker, comprising: recording an evoked response electrogram during a paced cardiac cycle; comparing the waveform of the evoked response electrogram with a template waveform representing capture; determining that capture has occurred during the paced cardiac cycle if the degree of similarity between the evoked response and template waveforms is above a specified threshold; and, selecting a sensing vector for generating the evoked response and template waveforms by: 1) comparing electrograms generated by capturing and non-capturing pacing pulses for a plurality of different sensing vectors, 2) selecting the sensing vector which results in the greatest degree of dissimilarity between the electrograms generated by the capturing and non-capturing pacing pulses.