From fbb5df7f4b40cd2d2135bf82ab104e7460a75ca0 Mon Sep 17 00:00:00 2001 From: ikozlowski Date: Mon, 6 Mar 2017 22:38:56 +0100 Subject: [PATCH] Added support for fish shell --- plugin/vim-markdown-preview.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/vim-markdown-preview.vim b/plugin/vim-markdown-preview.vim index 7f3cdd1..ad5a399 100644 --- a/plugin/vim-markdown-preview.vim +++ b/plugin/vim-markdown-preview.vim @@ -69,9 +69,9 @@ function! Vim_Markdown_Preview() let chrome_wid = system("xdotool search --name 'vim-markdown-preview.html - " . g:vim_markdown_preview_browser . "'") if !chrome_wid if g:vim_markdown_preview_use_xdg_open == 1 - call system('xdg-open /tmp/vim-markdown-preview.html &> /dev/null &') + call system('xdg-open /tmp/vim-markdown-preview.html 1>/dev/null 2>/dev/null &') else - call system('see /tmp/vim-markdown-preview.html &> /dev/null &') + call system('see /tmp/vim-markdown-preview.html 1>/dev/null 2>/dev/null &') endif else let curr_wid = system('xdotool getwindowfocus') @@ -118,9 +118,9 @@ function! Vim_Markdown_Preview_Local() let chrome_wid = system("xdotool search --name vim-markdown-preview.html - " . g:vim_markdown_preview_browser . "'") if !chrome_wid if g:vim_markdown_preview_use_xdg_open == 1 - call system('xdg-open vim-markdown-preview.html &> /dev/null &') + call system('xdg-open vim-markdown-preview.html 1>/dev/null 2>/dev/null &') else - call system('see vim-markdown-preview.html &> /dev/null &') + call system('see vim-markdown-preview.html 1>/dev/null 2>/dev/null &') endif else let curr_wid = system('xdotool getwindowfocus') -- 2.45.2