Vim: Cancel a search
Solved
Tintin72
-
dsk -
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
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
-
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.
-
Hello,
set nohlsearch
orset nohls
you can write this command in the .vimrc file
--
lami20j