From c21fdb43697c6c0e17d5ff492e5e79cb8af3e992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Tue, 7 Apr 2015 10:11:36 +0200 Subject: [PATCH] Fixed syntax for fish shell (fixes #148) --- autoload/vimtex/latexmk.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/vimtex/latexmk.vim b/autoload/vimtex/latexmk.vim index 7a09d8c..12a7381 100644 --- a/autoload/vimtex/latexmk.vim +++ b/autoload/vimtex/latexmk.vim @@ -375,7 +375,11 @@ function! s:latexmk_build_cmd(data) " {{{1 let cmd .= ' && set max_print_line=2000 & latexmk' else let cmd = 'cd ' . shellescape(a:data.root) - let cmd .= ' && max_print_line=2000 latexmk' + if fnamemodify(&shell, ':t') ==# 'fish' + let cmd .= '; and set max_print_line 2000; and latexmk' + else + let cmd .= ' && max_print_line=2000 latexmk' + endif endif let cmd .= ' ' . g:vimtex_latexmk_options