0

Once there is a search result, either from...

  • Pressing / and entering the search term.
  • Pressing * over a word.

How can I replace the highlighted text after performing a search?

Currently I manually copy the text and use:
%s/TheTextIJustSearchedFor/SomeNewText/g

However it feels inefficient since there is already the highlighted search term which could be used for this purpose.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.