Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim-markdown-composer not working for linux subsystem in windows #67

Open
floraliu1011 opened this issue Sep 15, 2018 · 3 comments
Open

Comments

@floraliu1011
Copy link

Hi,

I'm currently using a ubuntu subsystem in windows. I tried to install vim-markdown-composer and everything seems to work fine. I first installed Rust following their instruction on the website and here's the command line output for rustup

$ rustup --version
rustup 1.13.0 (ea9259c1b 2018-07-16)

I also copied paste the vim-plug installation script into my vimrc, ran PlugInstall and everything seems to work well. (no errors or any) But I can't open any browser preview either by opening a new md file or by :ComposerStart

Could you help me a bit and tell me where am I missing?

Thanks!

@cbcoutinho
Copy link

I'm also having the same problem. From my understanding of this plugin, it can be run as a server where the composing is being done on WSL and previewed in a browser on the Windows side, but I'm not sure how to get that information from the 'Channel' variable.

@Git0Shuai
Copy link

Server use command xdg-open to open browser on linux, but wsl dosen't have desktop envronment. So, I tried to open brower with windows explorer by adding this

# add this line before `case "$DE" in`
cmd.exe /c explorer "$url"

# original script
case "$DE" in
    KDE)
    open_kde "$url"
   ;;
...

to file /usr/bin/xdg-open and this worked for me.

@michaelfsp
Copy link

michaelfsp commented Aug 30, 2022

In Ubuntu 22.04 installed from the Windows store using wslview as browser works well. wslview is provided by wslu, which in turn can be installed with apt. At least with neovim these steps work:

  1. sudo apt install wslu
  2. add to let g:markdown_composer_browser = 'wslview' to your (n)vim config

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

No branches or pull requests

4 participants