Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv1709
Modified Files:
Tag: latex-multi-compile
multicompile.vim main.vim texrc
Log Message:
- a couple of small bugfixes and some rearrangement.
Index: multicompile.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/Attic/multicompile.vim,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** multicompile.vim 28 Aug 2003 23:18:39 -0000 1.1.2.1
--- multicompile.vim 29 Aug 2003 01:12:16 -0000 1.1.2.2
***************
*** 10,20 ****
" ============================================================================
- " generate a map for compiling multiple times.
- nnoremap <buffer> <Plug>Tex_CompileMultipleTimes :call Tex_CompileMultipleTimes()<CR>
-
- if !hasmapto('<Plug>Tex_CompileMultipleTimes')
- nmap <leader>lm <Plug>Tex_CompileMultipleTimes
- endif
-
" Tex_CompileMultipleTimes: compile a latex file multiple times {{{
" Description: compile a latex file multiple times to get cross-references asd
--- 10,13 ----
***************
*** 25,43 ****
else
call Tex_CompileMultipleTimes_Vim()
! endif
endfunction " }}}
- " TODO: these will need to go into texrc finally.
- " use python if available.
- let g:Tex_UsePython = 1
- " the system command which pulls in a file.
- if !exists('g:Tex_CatCmd')
- if &shell =~ 'sh'
- let g:Tex_CatCmd = 'cat'
- else
- let g:Tex_CatCmd = 'type'
- endif
- endif
-
if !has('python') || !g:Tex_UsePython
" Tex_GotoTempFile: open a temp file. reuse from next time on {{{
--- 18,24 ----
else
call Tex_CompileMultipleTimes_Vim()
! endif
endfunction " }}}
if !has('python') || !g:Tex_UsePython
" Tex_GotoTempFile: open a temp file. reuse from next time on {{{
***************
*** 235,239 ****
# The first time see if a .idx file has been created. If so we need to
# run makeindex.
! if runCount == 0 and os.path.exists(mainFileName_root.'.idx'):
idxFileName = mainFileName_root + '.idx'
idxlinesBefore = catFile(idxFileName)
--- 216,220 ----
# The first time see if a .idx file has been created. If so we need to
# run makeindex.
! if runCount == 0 and os.path.exists(mainFileName_root + '.idx'):
idxFileName = mainFileName_root + '.idx'
idxlinesBefore = catFile(idxFileName)
Index: main.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v
retrieving revision 1.40
retrieving revision 1.40.2.1
diff -C2 -d -r1.40 -r1.40.2.1
*** main.vim 17 Jun 2003 02:12:29 -0000 1.40
--- main.vim 29 Aug 2003 01:12:16 -0000 1.40.2.1
***************
*** 537,540 ****
--- 537,541 ----
endif
+ exe 'source '.s:path.'/multicompile.vim'
exe 'source '.s:path.'/compiler.vim'
exe 'source '.s:path.'/folding.vim'
Index: texrc
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v
retrieving revision 1.30.2.1
retrieving revision 1.30.2.2
diff -C2 -d -r1.30.2.1 -r1.30.2.2
*** texrc 28 Aug 2003 23:21:30 -0000 1.30.2.1
--- texrc 29 Aug 2003 01:12:16 -0000 1.30.2.2
***************
*** 62,65 ****
--- 62,78 ----
" ==============================================================================
+ " General settings {{{
+
+ TexLet g:Tex_UsePython = 1
+
+ " the system command which pulls in a file.
+ if &shell =~ 'sh'
+ TexLet g:Tex_CatCmd = 'cat'
+ else
+ TexLet g:Tex_CatCmd = 'type'
+ endif
+
+ " }}}
+ " ==============================================================================
" Rules: specifications of programs for compiling and viewing {{{
"
***************
*** 89,96 ****
" but it is known that it can sometimes give different results in the output,
" so use it with care.
! let s:CompileFlags = ''
! TexLet g:Tex_EscapeChars = '{}\'
! TexLet g:Tex_CompileRule_dvi = 'latex ' . s:CompileFlags .
! \ ' -interaction=nonstopmode $*'
TexLet g:Tex_CompileRule_ps = 'dvips -Ppdf -o $*.ps $*.dvi'
--- 102,106 ----
" but it is known that it can sometimes give different results in the output,
" so use it with care.
! TexLet g:Tex_CompileRule_dvi = 'latex -interaction=nonstopmode $*'
TexLet g:Tex_CompileRule_ps = 'dvips -Ppdf -o $*.ps $*.dvi'
|