Vim: Cancel a search

Solved
Tintin72 -  
 dsk -
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 réponses

jipicy Posted messages 40842 Registration date   Status Modérateur Last intervention   4 898
 
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
dsk
 
Hello
The question is how to remove a highlight after searching!!!
Reading the tutorial is given to everyone.
Your answer is off-topic.
0
lami20j Posted messages 21506 Registration date   Status Modérateur, Contributeur sécurité Last intervention   3 570
 
Hello,

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