vim-markdown icon indicating copy to clipboard operation
vim-markdown copied to clipboard

Auto :Toc + no headers = mixed up syntax highlighting

Open mwcz opened this issue 7 years ago • 1 comments

Recording explains it better than I can (sorry for the speed, the gif plays a little too fast):

vim-markdown-no-headers

I set up auto-invoking of :Toc as described in #166, but when I open a file that has no headers, a "No headers" warning appears, followed by the file opening without syntax highlighting. More specifically, it has the coloring of the Toc quickfix window instead of markdown syntax.

I'm now back to running :Toc manually to get around this problem, but thought I'd report it anyhow in case it's something others have run into.

Thanks for this awesome plugin! It's made writing markdown much more pleasant.

mwcz avatar Nov 07 '17 16:11 mwcz

I updated a solution in #166

ErrorTzy avatar Apr 20 '24 05:04 ErrorTzy