Canopus's answer is probably the nicest way to do this if you use it often, but if you want to do it by installing vanilla vim (or more, without installing any plugins), you can just do
:call matchadd('Search', 'foo') :call matchadd('Search', 'bar')
Then you can clear all matches with
:call clearmatches()
There are also ways to be more fussy about what you are clearing (with :call matchdelete(...) ) by storing the output of matchadd with a variable. For more information, see :help matchadd() and :help matchdelete()
If you are not using a syntax file that is too complicated (and in particular, not using rainbow.vim highlighting), you can also do this with:
:syn keyword Search foo :syn keyword Search bar
and clean it with
:syn clear Search
The only possible advantage of this that I can think of is that if there are many matches that you are trying to highlight, keyword highlighting is much faster than match highlighting (as the latter uses regex search). You can still execute syn keyword if you use rainbow.vim, but the command is much more complicated.
source share