In VIM, after finding text with \"/\" command, that text remains highlighted.
What is the command to remove that? I don\'t want to remove highlighting capability at
In addition to “clear the search register”, you can even reset the search register to its previous value:
command! -nargs=* -range S
\ let atslash=@/|exe ':'..','..'s'.|let @/=atslash
However:
- this does not reset the previous status of :hls. I do not believe this to be possible in general.
- this defines a new command, :S, to use in place of :s. You can use a cabbrev to map one to the other, but this will break when you add a range to the substitute command.