Hey. I'm glad that somebody read my mail. On Wed, Aug 29, 2007 at 01:06:59AM -0400, Jushan Bai wrote: > I notice that you proposed a solution to the "jump to error" problem. > But I'm a novice about the latexsuite setups and environment variables > etc. I'm using vim78.0 + miktex 2.5 + windows xp.
Note that I only tested my suggestion with Ubuntu Linux and tetex, so it might not work with miktex at all. Maybe you should consider reading the miktex documentation if their latex command supports the -file-line-error flag. If you get it to work in windows please let the vim-latex mailinglist know about it so that others can profit, too. > In which latexsuite script I should make the suggested changes? For testing purposes, you can just do a :let g:Tex_CompileRule_dvi='latex -interaction=nonstopmode -file-line-error $*' in vim. If it all works, you can add that statement without the : in your vimrc, or somewhere else, e.g. ~/.vim/after/ftplugin/tex.vim, thats where I have put it. (Your path might be different, I don't know about windows. The vim documentation about paths should be a good place to start reading about it, also :help compiler-rules is not a bad idea) > and where do I add or change or delete the following statement? I > have no idea what they mean at all: The statement that you meant: ----------- 8< ----------------- --- /usr/share/vim/addons/compiler/tex.vim 2007-01-29 13:39:58.000000000 +0100 +++ /home/lennox/.vim/compiler/tex.vim 2007-06-14 23:33:33.000000000 +0200 @@ -202,6 +202,7 @@ function! <SID>SetLatexEfm() 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 ------------ >8 ---------------- Is a patch made with the command diff -u /usr/share/vim/addons/compiler/tex.vim ~/.vim/compiler/tex.vim It shows the difference between the official /usr/share/vim/addons/compiler/tex.vim and the one that I changed and put in my home directory (~/.vim/compiler/tex.vim), with some context to improve readability. so lines with blanks in the first column mean unchanged lines (context), lines with "+" have to be added, lines with "-" have to be erased. See [1]. On any *nix you could use the "patch" [2] command to make these changes, but as its just one line you can just add it with your favourite text editor (I'd suggest vim, but as you use windows you may be a masochist and want to use notepad instead ;-)...). It basically just means that you have to add the line that begins with the "+" in the shown context (btw. the 202 is a line number, so :202 will get you there in vim). If you have installed the latex-suite like described here: http://vim-latex.sourceforge.net/index.php?subject=download&title=Download the file that you have to edit should be: vimfiles\compiler\tex.vim > Thanks for your help. You're welcome. I hope you can understand my lengthy description. If you want to know what it all means look for documentation on -file-line-error in miktex, and maybe do a :help efm in vim. Cheers Martin [1] http://en.wikipedia.org/wiki/Diff#Context_format [2] http://en.wikipedia.org/wiki/Patch_%28Unix%29 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel