Skip to content

Instantly share code, notes, and snippets.

@DeaR DeaR/unbold.vim
Last active Aug 29, 2015

Embed
What would you like to do?
function! s:unbold()
redir => l:hl
silent highlight
redir END
for l:hl2 in map(filter(split(hl, '[\r\n]'), 'v:val =~ "term=\\S*bold"'), 'substitute(substitute(substitute(v:val, "\\<xxx\\>", "", ""), "term=\\S*\\zs\\%(,bold\\|bold,\\)", "", "g"), "term=\\zsbold", "NONE", "g")')
execute 'highlight' l:hl2
endfor
endfunction
autocmd Syntax,ColorScheme * call s:unbold()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.