I want to search for $maximumTotalAllowedAfterFinish and replace it with $minimumTotalAllowedAfterFinish. Instead of typing the long text:
$maximumTotalAllowedAfterFinish
$minimumTotalAllowedAfterFinish
Type q: to get into history editing mode in a new buffer. Then edit the last line of the buffer and press Enter to execute it.
q:
Enter