Tip33: Insert the Current Word at the Command Prompt

January 12, 2021 ยท View on GitHub

<C-r><C-w>

copy the word under the cursor and insert it at the command-line prompt.

*

search for each occurrence that cursor positioned. and cursor jump forward to the next match. equal to typing /\<<C-r><C-w>\><CR>

tip33

:%s//<C-r><C-w>/g

replace the others.

Tip32 Tip34