Skip to content

Instantly share code, notes, and snippets.

@DeaR
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DeaR/6096727d5fdfa6a40dc9 to your computer and use it in GitHub Desktop.
Save DeaR/6096727d5fdfa6a40dc9 to your computer and use it in GitHub Desktop.
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