iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.76k stars 280 forks source link

Set global not working #275

Closed fecet closed 3 years ago

fecet commented 3 years ago

I set let g:mkdp_command_for_global = 1 in init.vim, but still return E492: Not an editor command: MarkdownPreview in .rmd file, following is my minimal init.vim

Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
let g:mkdp_browser = 'msedge'
let g:mkdp_command_for_global = 1
iamcco commented 3 years ago

Can't reproduce, what's your vim or neovim version?

iamcco commented 3 years ago

OK I see, remove the code 'for': ['markdown', 'vim-plug']