JamshedVesuna / vim-markdown-preview

A light Vim plugin for previewing markdown files in a browser - without leaving Vim.
580 stars 91 forks source link

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

Open CathrineTeng opened 6 years ago

CathrineTeng commented 6 years ago

Base info:

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 6 years ago

I have same issue.

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

dessalines commented 5 years ago

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

ghost commented 5 years ago

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 commented 4 years ago

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 commented 3 years ago

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

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

OS: Manjaro-i3