Merge pull request #300 from wmvanvliet/master

Add support for (t)csh
This commit is contained in:
Karl Yngve Lervåg 2015-12-15 13:49:57 +01:00
commit 75c0b15381
2 changed files with 9 additions and 1 deletions

View File

@ -393,6 +393,8 @@ function! s:latexmk_build_cmd() " {{{1
let cmd = 'cd ' . vimtex#util#shellescape(b:vimtex.root)
if fnamemodify(&shell, ':t') ==# 'fish'
let cmd .= '; and set max_print_line 2000; and latexmk'
elseif fnamemodify(&shell, ':t') ==# 'tcsh'
let cmd .= ' && set max_print_line=2000 && latexmk'
else
let cmd .= ' && max_print_line=2000 latexmk'
endif
@ -439,6 +441,8 @@ function! s:latexmk_build_cmd() " {{{1
if has('win32')
let cmd .= ' >' . tmp
let cmd = 'cmd /s /c "' . cmd . '"'
elseif fnamemodify(&shell, ':t') ==# 'tcsh'
let cmd .= ' >' . tmp . ' |& cat'
else
let cmd .= ' >' . tmp . ' 2>&1'
endif

View File

@ -76,7 +76,11 @@ function! vimtex#util#execute(exe) " {{{1
endif
else
if null
let cmd .= ' >/dev/null 2>&1'
if fnamemodify(&shell, ':t') ==# 'tcsh'
let cmd .= ' >/dev/null |& cat'
else
let cmd .= ' >/dev/null 2>&1'
endif
endif
if bg
let cmd .= ' &'