From 4e0925333c54ebf9666bfbe452d666a356585060 Mon Sep 17 00:00:00 2001 From: Torben Date: Mon, 15 Feb 2016 11:43:51 +0100 Subject: [PATCH] Add preview browser name to OSX open call --- plugin/vim-markdown-preview.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/vim-markdown-preview.vim b/plugin/vim-markdown-preview.vim index 2c8f013..2100c60 100644 --- a/plugin/vim-markdown-preview.vim +++ b/plugin/vim-markdown-preview.vim @@ -68,7 +68,7 @@ function! Vim_Markdown_Preview() endif if OSNAME == 'mac' - call system('open -g /tmp/vim-markdown-preview.html') + call system('open -a "' . g:vim_markdown_preview_browser . '" -g /tmp/vim-markdown-preview.html') endif if g:vim_markdown_preview_temp_file == 1 @@ -120,7 +120,7 @@ function! Vim_Markdown_Preview_Local() endif if OSNAME == 'mac' - call system('open -g "' . curr_file . '".html') + call system('open -a "' . g:vim_markdown_preview_browser . '" -g "' . curr_file . '".html') endif if g:vim_markdown_preview_temp_file == 1 -- 2.45.2