By mistake I made a search for a character in a file in vim.
How do I stop the highlighting of that character everywhere in
the file?
There are several ways to do it, depending on what you want. If
you just want to not highlight this search, you can use
:noh
If you want to disable search-highlighting alltogether, you can use
:set nohls
If you want to never again see search highlighting, you can put
the above "set nohls" line (minus the colon) in your vimrc file.
You can read more about them at
:help :noh
:he 'hls'
-tim