From 271b63d71707720ad0d35590b8cb50f8f8f43014 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 11 May 2015 15:05:13 +0200 Subject: Update --- ftplugin/latex-box/common.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ftplugin/latex-box/common.vim') diff --git a/ftplugin/latex-box/common.vim b/ftplugin/latex-box/common.vim index 59cf95d6..c5451027 100644 --- a/ftplugin/latex-box/common.vim +++ b/ftplugin/latex-box/common.vim @@ -264,7 +264,12 @@ function! LatexBox_View(...) if has('win32') let cmd = '!start /b ' . cmd . ' >nul' else - let cmd = '!' . cmd . ' &>/dev/null &' + let cmd = '!' . cmd . ' ' + if fnamemodify(&shell, ':t') ==# 'fish' + let cmd .= ' >/dev/null ^/dev/null &' + else + let cmd .= ' &>/dev/null &' + endif endif silent execute cmd if !has("gui_running") -- cgit v1.2.3