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

Hilight disapper when this plugin is lazy load.

Open wsdjeg opened this issue 9 years ago • 6 comments
trafficstars

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

  1. vim read.md
  2. open ctrlp
  3. select one other file with different filetype then we will get this issue https://github.com/ctrlpvim/ctrlp.vim/issues/202

wsdjeg avatar Feb 29 '16 12:02 wsdjeg

trigger FileType event will break the markdown highlight. after :e command, highlight work again.

zgpio avatar Jun 11 '18 01:06 zgpio

Same issue. I use https://github.com/sheerun/vim-polyglot to load plasticboy/vim-markdown.

:e command doesn't work for me.

Congee avatar Jun 01 '19 15:06 Congee

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

Congee avatar Jun 01 '19 15:06 Congee

Same here. :e does work for me though. The other difference is that I'm using Plug instead of dein.

lfilho avatar Jul 30 '19 02:07 lfilho

Comment 872th line in ftplugin/mrakdown.vim will fix my problem:

    autocmd BufWinEnter <buffer> call s:MarkdownRefreshSyntax(1)

mrbeardad avatar Sep 09 '20 02:09 mrbeardad

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

davidroeca avatar Feb 15 '23 21:02 davidroeca