iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.62k stars 275 forks source link

Hello, MarkdownPreview does not work on my mac for macvim. #223

Open mt1ger opened 4 years ago

mt1ger commented 4 years ago

It just does not respond at all without any info. Can you help me out? Or is there some specific configuration that I need to put in my .vimrc? Thanks.

mt1ger commented 4 years ago

use safari fixed the problem. Thank you.

tiepvupsu commented 4 years ago

Hi @mt1ger how did you config to use with safari? I type :MarkdownPreview but nothing happened. Thanks.

mt1ger commented 4 years ago

Put this "let g:mkdp_browser = 'safari'" into your .vimrc. And job is done. Chrome does not work for my macvim. However it works for neovim. Interesting.

kaiyulee commented 4 years ago

let g:mkdp_browser = 'Google Chrome' works well.

jose-elias-alvarez commented 4 years ago

I'm having the same problem with neovim (terminal). By default, :MarkdownPreview does nothing, but setting g:mkdp_browser = 'safari' fixes it. (Other values like 'firefox' don't work for me.)

vincentmac commented 3 years ago

make sure you have yarn installed

zlj-zz commented 3 years ago

I try safari and chrome, also can not. How to make it work?

patricorgi commented 3 years ago

Having the same problem. let g:mkdp_browser = 'safari' doesn't make it work.

owenthereal commented 1 year ago

Tried both let g:mkdp_browser = 'safari' & let g:mkdp_browser = 'Google Chrome'. Neither works

Bannirui commented 10 months ago

I also get stuck in this problem.

Linux

I use the same .vimrc between diff platforms like mac and arch. MarkdownPreview works pretty good on arch and the only browser is firefox.

Mac

It did not work on mac, default browser is chrome so it previews via chrome but failed and the message like 127.0.0.1 拒绝了我们的连接请求。.

So i try to specify the browser, definately absolute path, like let g:mkdp_browser = '/System/Volumes/Preboot/Cryptexes/App/System/Applications/Safari. app/Contents/MacOS/Safari', and execute source ~/.vimrc. That not works, it still preview on chrome, and chrome still show the same msg as mentioned above.

I have no idea, appreciate for help.