iamcco / markdown-preview.vim

⚠️ PLEASE USE https://github.com/iamcco/markdown-preview.nvim INSTEAD
792 stars 75 forks source link

MarkdownPreview doesn't work in OS X #1

Closed c4pt0r closed 9 years ago

c4pt0r commented 9 years ago

I created an alias in my zshrc: alias google-chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" but it doesn't work.

19000 commented 9 years ago

AFAIK aliases only work in shell command line. Unlike environment variables, they are not passed to subprocesses like vim. So vim fail to acquire the path.

The two commands below both work on my machine. Have a try!

let g:mkdp_path_to_chrome = "open -a Google\\ Chrome"
let g:mkdp_path_to_chrome = "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome"
c4pt0r commented 9 years ago

cool, it works.