In Vim, is there a way to paste text in the search line?

后端 未结 7 1686
情话喂你
情话喂你 2020-12-22 16:29

I want to search for $maximumTotalAllowedAfterFinish and replace it with $minimumTotalAllowedAfterFinish. Instead of typing the long text:

7条回答
  •  无人及你
    2020-12-22 17:22

    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:

    :he cmdline-editing
    

    for more information.

提交回复
热议问题