summaryrefslogtreecommitdiffstats
path: root/ftplugin/latex-box/common.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/latex-box/common.vim')
-rw-r--r--ftplugin/latex-box/common.vim7
1 files changed, 6 insertions, 1 deletions
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")