diff --git a/autoload/latex.vim b/autoload/latex.vim index f8cb83a..da33adf 100644 --- a/autoload/latex.vim +++ b/autoload/latex.vim @@ -106,9 +106,16 @@ function! latex#view(...) " {{{1 " Join arguments to pass them on to the viewer let args = join(a:000, ' ') + " Disable shellslash + let l:ssl = &l:ssl + setlocal nossl + let exe = {} let exe.cmd = g:latex_viewer . ' ' . args . shellescape(outfile) + " Restore shellslash + let &l:ssl = l:ssl + call latex#util#execute(exe) endfunction " }}}1 diff --git a/autoload/latex/latexmk.vim b/autoload/latex/latexmk.vim index 75c250a..684ea90 100644 --- a/autoload/latex/latexmk.vim +++ b/autoload/latex/latexmk.vim @@ -72,6 +72,10 @@ function! latex#latexmk#clean(full) " {{{1 return endif + " Disable shellslash + let l:ssl = &l:ssl + setlocal nossl + " " Run latexmk clean process " @@ -93,6 +97,9 @@ function! latex#latexmk#clean(full) " {{{1 \ } call latex#util#execute(exe) + " Restore shellslash + let &l:ssl = l:ssl + if a:full echomsg "latexmk full clean finished" else @@ -225,6 +232,10 @@ function! s:latexmk_set_cmd(data) " {{{1 " which allows inspection of latexmk output let tmp = tempname() + " Disable shellslash + let l:ssl = &l:ssl + setlocal nossl + if has('win32') let cmd = 'cd /D ' . shellescape(a:data.root) let cmd .= ' && set max_print_line=2000 & latexmk' @@ -249,6 +260,9 @@ function! s:latexmk_set_cmd(data) " {{{1 let cmd .= ' ' . shellescape(a:data.base) + " Restore shellslash + let &l:ssl = l:ssl + if has('win32') let cmd .= ' >' . tmp let cmd = 'cmd /s /c "' . cmd . '"'