Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

MarkdownPreview doesn't work in OS X #1

Closed
c4pt0r opened this issue Sep 21, 2015 · 2 comments
Closed

MarkdownPreview doesn't work in OS X #1

c4pt0r opened this issue Sep 21, 2015 · 2 comments

Comments

@c4pt0r
Copy link

c4pt0r commented Sep 21, 2015

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

@c4pt0r c4pt0r changed the title :MarkdownPreview doesn't work in OS X MarkdownPreview doesn't work in OS X Sep 21, 2015
@19000
Copy link

19000 commented Sep 21, 2015

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
Copy link
Author

c4pt0r commented Sep 22, 2015

cool, it works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants