3 " Maintainer: Artem Chuprina <ran@ran.pp.ru>
4 " Last Change: 2004 Mar 27
6 if exists("current_compiler")
10 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
11 command -nargs=* CompilerSet setlocal <args>
14 " If makefile exists and we are not asked to ignore it, we use standard make
15 " (do not redefine makeprg)
16 if exists('b:tex_ignore_makefile') || exists('g:tex_ignore_makefile') ||
17 \(!filereadable('Makefile') && !filereadable('makefile'))
18 " If buffer-local variable 'tex_flavor' exists, it defines TeX flavor,
19 " otherwize the same for global variable with same name, else it will be
21 if exists("b:tex_flavor")
22 let current_compiler = b:tex_flavor
23 elseif exists("g:tex_flavor")
24 let current_compiler = g:tex_flavor
26 let current_compiler = "latex"
28 let &l:makeprg=current_compiler.' -interaction=nonstopmode'
30 let current_compiler = 'make'
36 " Value errorformat are taken from vim help, see :help errorformat-LaTeX, with
37 " addition from Srinath Avadhanula <srinath@fastmail.fm>
38 CompilerSet errorformat=%E!\ LaTeX\ %trror:\ %m,
40 \%+WLaTeX\ %.%#Warning:\ %.%#line\ %l%.%#,
41 \%+W%.%#\ at\ lines\ %l--%*\\d,
42 \%WLaTeX\ %.%#Warning:\ %m,
51 \%-GSee\ the\ LaTeX%m,
52 \%-GType\ \ H\ <return>%m,
55 \%-G(see\ the\ transcript%.%#),
58 \%+O%*[^()](%*[^()])%r,
62 \%+P[%\\d%[^()]%#(%f%r,