From 6a6aeff0132be2c9ae8850c272588a42e84cc12d Mon Sep 17 00:00:00 2001 From: EinfachToll Date: Sun, 28 Oct 2018 21:04:24 +0100 Subject: [PATCH] Fix losing the highlight of headers when switching colorschemes Funnily, the code to fix this was there for over 8 years now, but didn't work. --- plugin/vimwiki.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/vimwiki.vim b/plugin/vimwiki.vim index 8b13d6c..2487072 100644 --- a/plugin/vimwiki.vim +++ b/plugin/vimwiki.vim @@ -231,11 +231,11 @@ endif augroup vimwiki autocmd! + autocmd ColorScheme * call s:setup_cleared_syntax() for s:ext in s:known_extensions exe 'autocmd BufNewFile,BufRead *'.s:ext.' call s:setup_new_wiki_buffer()' exe 'autocmd BufEnter *'.s:ext.' call s:setup_buffer_enter()' exe 'autocmd BufLeave *'.s:ext.' call s:setup_buffer_leave()' - exe 'autocmd ColorScheme *'.s:ext.' call s:setup_cleared_syntax()' " Format tables when exit from insert mode. Do not use textwidth to " autowrap tables. if vimwiki#vars#get_global('table_auto_fmt')