iamcco / markdown-preview.vim

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

Possibility of using under WSL (Windows Subsystem for Linux)? | WSL下有可能使用嘛? #55

Closed HuaiYu-Chao closed 6 years ago

HuaiYu-Chao commented 6 years ago

Thanks for your working at first. This is a powerful plugin, but is it possible to run in WSL? I've tried to set g:mkdp_path_to_chrome to the correct expression in WSL. Like this in my case:

let g:mkdp_path_to_chrome = '/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe'

After this, the command MarkdownPreview do open a chrome tab, but can't connect correctly. Is there any solution?


首先感謝大大寫了這個插件 這插件超棒的,但我想請問在WSL下有沒有可能運作? 我試過把 g:mkdp_path_to_chrome 設成在WSL下正確的路徑。 我個人的設定是這樣:

let g:mkdp_path_to_chrome = '/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe'

完成之後, MarkdownPreview 會打開一個chrome分頁,但是無法正確連線。 有任何解決方法嘛?

jnmoal commented 6 years ago

Hello,

I just tried it out with the Ubuntu bash in WSL and firefox, everything works like a charm!

HuaiYu-Chao commented 6 years ago

@jnmoal I tried again today in the same way with firefox and chrome, and they both work. I don't know why it didn't work last time, but thanks a lot!

HuaiYu-Chao commented 6 years ago

By the way, should I close this issue now?

jnmoal commented 6 years ago

If it is working then yes you can close the issue.

HuaiYu-Chao commented 6 years ago

ok, thx!