

























:H string1 string2 string3
可以同时查找三个不同字符串,并用不同颜色标注 日志复杂的时候,还是很有用的
https://i.imgur.com/Qgaimsz.png
```
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(
command! HC call clearmatches()
把上面的内容 添加到 .vimrc 中就可以了
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。