vim-markdown
vim-markdown copied to clipboard
Hilight disapper when this plugin is lazy load.
I just try call
dein#add('plasticboy/vim-markdown',{'lazy':1,'on_ft':'markdown'})
if this plugin is lazy load then reproduce step is here
- vim read.md
- open ctrlp
- select one other file with different filetype then we will get this issue https://github.com/ctrlpvim/ctrlp.vim/issues/202
trigger FileType event will break the markdown highlight.
after :e command, highlight work again.
Same issue. I use https://github.com/sheerun/vim-polyglot to load plasticboy/vim-markdown.
:e command doesn't work for me.
I found sheerun/vim-polyglot doesn't play nicely with plasticboy/vim-markdown
https://github.com/sheerun/vim-polyglot/issues/152#issuecomment-497419925
not sure which end should resolve this issue
Same here. :e does work for me though.
The other difference is that I'm using Plug instead of dein.
Comment 872th line in ftplugin/mrakdown.vim will fix my problem:
autocmd BufWinEnter <buffer> call s:MarkdownRefreshSyntax(1)
I also have the same problem using vim-packager. :edit works for me, and with the help of @mrbeardad above, I was able to add this block to my vim config as a fix:
" https://github.com/preservim/vim-markdown/issues/268
augroup markdown_fix
autocmd!
autocmd BufWinEnter *.md execute ":edit"
augroup END