I want to search for $maximumTotalAllowedAfterFinish and replace it with $minimumTotalAllowedAfterFinish. Instead of typing the long text:
$maximumTotalAllowedAfterFinish
$minimumTotalAllowedAfterFinish
You can insert the contents of a numbered or named register by typing CTRLR {0-9a-z"%#:-=.}. By typing CTRL-R CTRL-W you can paste the current word under the cursor. See:
{0-9a-z"%#:-=.}
:he cmdline-editing
for more information.