sponsor Vim development Vim logo Vim Book Ad

vimlatex : Sanitizes LaTeX error messages for Vim-LaTeX.

 script karma  Rating 12/3, Downloaded by 2089  Comments, bugs, improvements  Vim wiki

created by
Ted Pavlic
 
script type
utility
 
description
# vimlatex: Script wrapper for TeX/LaTeX/etc. that sanitizes output to
#           be compatible with Vim-LaTeX's errorformat. Prevents Vim
#           from opening the wrong file after some errors.
#
#           This script is inspired by
#
# http://hermitte.free.fr/vim/ressources/vimfiles/compiler/vim-tex_sh.html
#
# and
#
# http://www.unix.com/shell-programming-scripting/20218-pipelining.html
#
# Original author: Ted Pavlic
#                  ted@tedpavlic.com
#                  http://www.tedpavlic.com/
#
# Mercurial source code repository for original author's version:
#                  http://hg.tedpavlic.com/vimlatex/
#
# Copyright (c) 2008 Theodore P. Pavlic under MIT license (http://www.opensource.org/licenses/mit-license.php)
#
# Usage: vimlatex %command [%arguments]
#
#        where the command line:
#
#        %command %arguments
#
#        would texify as normal. In other words, the "vimlatex" command
#        can simply be added before a given working command line.
#
# For more information (and history), see:
#
# http://phaseportrait.blogspot.com/2008/03/fixing-vim-latex-compiler-error.html
#
 
install details
Place script somewhere in PATH, like:

/usr/local/bin/vimlatex

and make it executable, like:

chmod 0755 /usr/local/bin/vimlatex

Then, add "vimlatex" before any tex or latex build command lines. "vimlatex" is a wrapper that processes the output while maintaining the same return code. For example:

latex myfile.tex

and

vimlatex latex myfile.tex

both run "latex" on "myfile.tex", but the output from the second line will have error messages that should all make sense to Vim-LaTeX's error format.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vimlatex 1.06 2008-07-09 6.0 Ted Pavlic Improved handling of log lines with (...)...) sections.
vimlatex 1.05 2008-06-17 6.0 Ted Pavlic Added link to Mercurial source code repository (no changes to code).
vimlatex 1.04 2008-05-27 6.0 Ted Pavlic Made MIT license explicit.
vimlatex 1.03 2008-05-27 6.0 Ted Pavlic First attempt to preventing breaking lines with (..) on them.
vimlatex 1.02 2008-03-07 6.0 Ted Pavlic Improved portability (particularly with OLD NON-GNU sed provided by OS/X).
vimlatex 1.01 2008-03-07 6.0 Ted Pavlic Improved sed script by combining three sed calls into one (Christian Ebert suggestion).
vimlatex 1.0 2008-03-06 6.0 Ted Pavlic Initial revision.
ip used for rating: 18.97.14.90

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github