JamshedVesuna/vim-markdown-preview

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

CathrineTeng opened this issue ยท 5 comments

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 commented

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)

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

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 

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

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