Update of /cvsroot/vim-latex/vimfiles/compiler
In directory usw-pr-cvs1:/tmp/cvs-serv9747
Modified Files:
tex.vim
Log Message:
I changed the definition of 'makeprg'. It now mostly follows the same logic
as SetTexCompilerTarget(), but is not as flexible (since the target format is
not used here). This is a temporary fix. Duplication is bad ...
Index: tex.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/compiler/tex.vim,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** tex.vim 8 Nov 2002 13:39:29 -0000 1.2
--- tex.vim 8 Nov 2002 18:05:20 -0000 1.3
***************
*** 120,136 ****
" needs to be complete, i.e it should contain $* and stuff.
if exists('g:Tex_CompilerFormat')
! let &makeprg = current_compiler.g:Tex_CompilerFormat
else
" Furthermore, if 'win32' is detected, then we want to set the arguments up so
" that miktex can handle it.
if has('win32')
! let &makeprg = current_compiler.' --src-specials -interaction=nonstopmode $*'
else
! if &shell =~ 'sh'
! let &makeprg = current_compiler.' \\nonstopmode \\input\{$*\}'
! else
! let &makeprg = current_compiler.' \nonstopmode \input{$*}'
! endif
endif
endif
--- 120,141 ----
" needs to be complete, i.e it should contain $* and stuff.
if exists('g:Tex_CompilerFormat')
! let &l:makeprg = current_compiler.' '.g:Tex_CompilerFormat
else
+ if exists('g:Tex_EscapeChars') " Use this if LaTeX Suite is installed.
+ let escChars = g:Tex_EscapeChars
+ elseif has('win32')
+ let escChars = ''
+ else
+ let escChars = '{}\'
+ endif
" Furthermore, if 'win32' is detected, then we want to set the arguments up so
" that miktex can handle it.
if has('win32')
! let options = '--src-specials'
else
! let options = ''
endif
+ let &l:makeprg = current_compiler . ' ' . options .
+ \ escape(' \nonstopmode \input{$*}', escChars)
endif
|