markdown-preview.nvim icon indicating copy to clipboard operation
markdown-preview.nvim copied to clipboard

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

Open mt1ger opened this issue 4 years ago • 10 comments

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 avatar Aug 17 '20 01:08 mt1ger

use safari fixed the problem. Thank you.

mt1ger avatar Aug 17 '20 02:08 mt1ger

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

tiepvupsu avatar Aug 17 '20 22:08 tiepvupsu

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.

mt1ger avatar Aug 17 '20 23:08 mt1ger

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

kaiyulee avatar Aug 20 '20 12:08 kaiyulee

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.)

jose-elias-alvarez avatar Aug 28 '20 09:08 jose-elias-alvarez

make sure you have yarn installed

vincentmac avatar Nov 20 '20 21:11 vincentmac

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

zlj-zz avatar Dec 15 '20 16:12 zlj-zz

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

patricorgi avatar Aug 13 '21 20:08 patricorgi

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

owenthereal avatar Jan 07 '23 19:01 owenthereal

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.

Bannirui avatar Nov 01 '23 06:11 Bannirui