PracticalVim Tip33 - yszheda/wiki GitHub Wiki

Tip 33: Insert the Current Word at the Command Prompt

Return to the top: <>

  • ``: mapping copies the word under the cursor and inserts it at the command-line prompt.
  • ``: mapping copies the WORD under the cursor and inserts it at the command-line prompt.
  • `*`: equivalent to `/\<\>`

Example:

Application: place your cursor on a Vim script, and use `:help ` to look up the documentation for that setting.

References:

⚠️ **GitHub.com Fallback** ⚠️