Hey list.
Like others I have been annoyed by the non-working "jump 
to error" behaviour in the quickfix window, and although I 
am not a hacker I found a workaround (it hasn't undergone 
any testing yet, but it works for my little project now).

I do
:let g:Tex_CompileRule_dvi='latex -interaction=nonstopmode 
-file-line-error $*'

(the difference to the default is the -file-line-error)
this gives output like this:

...
./foo.tex:8: Undefined control sequence.
l.8   \foo
...

instead of
! Undefined control sequence.
l.8 \foo

So one does not need all that pushing and popping 
filenames at all, just another statement in 
compiler/tex.vim to match the new format:

--- /usr/share/vim/addons/compiler/tex.vim      2007-06-12 
15:32:12.000000000 +0200
+++ tex.vim     2007-06-12 15:44:27.000000000 +0200
@@ -202,6 +202,7 @@
  
         setlocal efm+=%E!\ LaTeX\ %trror:\ %m
         setlocal efm+=%E!\ %m
+       setlocal efm+=%E%f:%l:\ %m
  
         setlocal efm+=%+WLaTeX\ %.%#Warning:\ %.%#line\ 
%l%.%#
         setlocal efm+=%+W%.%#\ at\ lines\ %l--%*\\d


I guess one can get rid of some other rules that are not 
needed anymore.
This could be a good simplification, but I don't know how 
portable it is (maybe not every "latex" has 
-file-line-error ..).

btw. I am using version 20060325-1 on ubuntu edgy eft.

Cheers Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to