Closed zgpio closed 6 years ago
Reproduced. But it is feature.
You have changed autocmd FileType
in the hook.
dein executes let &filetype = &filetype
to recall FileType autocmd.
It breaks vim syntax highlight.
You can simulate the behavior by let &fletype = &filetype
after opening the buffer.
So, it is let &fletype = &filetype
breaks mardown highlight.
I don't know plasticboy/vim-markdown
's feature.
Maybe I should add it in hook_add
.
Warning: I will close the bug issue without the minimal init.vim and the reproduce ways.
Problems summary
dein 'hook_source' FileType autocmd break the markdown highlight
Environment Information (Required!)
dein.vim version(SHA1): latest
OS: win10
Vim/neovim version: vim8.1
Provide a minimal .vimrc with less than 50 lines (Required!)
clone
plasticboy/vim-markdown
plugin into~/vimfiles/pack/github/start/
;The reproduce ways from Vim starting (Required!)
plasticboy/vim-markdown
plugin into~/vimfiles/pack/github/start/
;:e foo.md
foo.md is a exist file,contains:Screen shot (if possible)
before enter insert:
after enter insert (as you see, the
set nu
highlight broken):