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

'call Vim_Markdown_Preview()' can't open the chrome automatically #83

Open
CathrineTeng opened this issue May 28, 2018 · 5 comments
Open

Comments

@CathrineTeng
Copy link

Base info:

  • os : Fedora25
  • xdotool: 3.2
  • grip: 4.5.2

I installed this plugin with vundle, and the config of .vimrc is only 'let vim_markdown_preview_github = 1 '.
After I press the ctrl-p, there would be the correct vim-markdown-preview.html generated in the /tmp/, but the browser just has no reaction when it is open.

@ozars
Copy link

ozars commented Jul 12, 2018

I have same issue.

  • OS: Ubuntu 16.04 (x64)
  • xdotool: 3.20150503.1
  • grip: 4.4.0
  • firefox: 61.0.1

Related configuration in .vimrc:

let g:vim_markdown_preview_github=1                                  
let g:vim_markdown_preview_browser='firefox'

Similarly, when I use command firefox /tmp/vim-markdown-preview.html manually, I can view generated html file in Firefox.

ps. More info

  • vim version info (top 3 lines):
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
Included patches: 1-1689
Extra patches: 8.0.0056
  • Latest commit pulled for vim-markdown-preview: 9b3ec41 (up to date with origin as of today)

@dessalines
Copy link

Same, not working for me, arch linux, firefox, just doesn't open.

@ghost
Copy link

ghost commented Jul 2, 2019

It works fine on Manajaro and Firefox with following settings:

let vim_markdown_preview_github=1
let vim_markdown_preview_use_xdg_open=1
let vim_markdown_preview_browser='Mozilla Firefox'
let vim_markdown_preview_hotkey='<C-m>' 
let vim_markdown_preview_toggle=3 

@morpheusthewhite
Copy link

morpheusthewhite commented Nov 14, 2019

let vim_markdown_preview_use_xdg_open=1 solved the issue for me. My configuration:

let vim_markdown_preview_github=1 
let vim_markdown_preview_browser='firefox'
let vim_markdown_preview_use_xdg_open=1

But the file needs to be refreshed manually

@Zeioth
Copy link

Zeioth commented Nov 5, 2020

I think this plugin doesn't support arch... Thing's I've found so far:

  • Google chrome won't open: Most likely it's looking for the wrong package on arch. It should look for google-chrome-stable
  • Vim loses focus: It goes to Firefox every time you save the file.
  • Firefox open extra tabs: Instead of using always the same tab, it just open a new tab every time.

As it is right now i don't consider it usable. Which is a shame because it is ALMOST usable.

OS: Manjaro-i3

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

5 participants