Vim: Cancel a search

Solved
Hello,

In Vim when I search for an occurrence I type /occurrence
and all occurrences present in the text are highlighted in yellow.
The problem is that once I’ve finished my search, the occurrences remain highlighted and I can't find the command to cancel the search.
Can someone help me?

Thank you
Configuration: Windows XP Internet Explorer 6.0

2 answers

  1. Moderator
    Hello,

    A simple reading of the learning tutorial "vimtutor" (launch by typing "vimtutor") would have given you :
    Lesson 6.4: ADJUSTING OPTIONS 6. To turn off the highlighting of search results, type: :nohlsearch
    ;-))

    --
    Z'@+...che.
    JP: Zen, my Nuggets! ;-) Knowledge is only valuable if it's shared.
    8
    1. Hello
      The question is how to remove a highlight after searching!!!
      Reading the tutorial is given to everyone.
      Your answer is off-topic.
      0
  2. Moderator
    Hello,

    set nohlsearch
    or
    set nohls
    you can write this command in the .vimrc file
    --
    lami20j
    4