:H string1 string2 string3
可以同时查找三个不同字符串,并用不同颜色标注 日志复杂的时候,还是很有用的

```
let g:multi_highlight_groups = ['SpellBad', 'SpellCap', 'CurSearch', 'DiffAdd', 'DiffChange', 'PmenuExtra']
function! MultiHighlight(...)
call clearmatches()
let group_count = len(g:multi_highlight_groups)
let i = 0
for pattern in a:000
let group = g:multi_highlight_groups[i % group_count]
call matchadd(group, pattern)
let i += 1
endfor
endfunction
command! -nargs=+ H call MultiHighlight(<f-args>)
command! HC call clearmatches()
把上面的内容 添加到 .vimrc 中就可以了