From e61467434e08938ebe4212bbd9e36166c5884871 Mon Sep 17 00:00:00 2001 From: Anton Kozhemyachenko Date: Wed, 13 May 2015 19:22:39 +0300 Subject: [PATCH] Supports global variable to set a browser --- plugin/vim-markdown-preview.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/vim-markdown-preview.vim b/plugin/vim-markdown-preview.vim index a714333..299b584 100644 --- a/plugin/vim-markdown-preview.vim +++ b/plugin/vim-markdown-preview.vim @@ -4,7 +4,7 @@ "============================================================ let b:REMOVE_TEMP_FILE = 0 "To remove the temp file, set to 1 -let b:vim_markdown_preview_browser = 'Google Chrome' +let b:vim_markdown_preview_browser = get(g:, 'vim_markdown_preview_browser', 'Google Chrome') function! Vim_Markdown_Preview() -- 2.45.2