Loading ...
Sorry, an error occurred while loading the content.
 

Re: Search the word under cursor

Expand Messages
  • Madoka Machitani
    ... Type after the slash. It inserts the current word under the cursor into the command-line. See :h cmdline-completion for details. Of course *
    Message 1 of 3 , Jul 3, 2002
      * Armenio Pinto <armenio-p-pinto@...> [020701 23:31]:
      > I would like to insert the current word in the search text, so,
      > I tried the following: <ESC>/<C-O>
      >
      > But it didn't work... It inserts "<C-O>" as the search text!

      Type <C-R><C-W> after the slash. It inserts the current word under the
      cursor into the command-line. See :h cmdline-completion for details.

      Of course * and # suffice, if you're searching for a mere single word.

      HTH,
      Madoka
    Your message has been successfully submitted and would be delivered to recipients shortly.