LaTeX error filter


Ⅰ. 插件描述

Filters latex log file to get errors and warnings

Ⅱ. 基本信息

创建日期:  2008-08-10
使用用户:  1
Github星:  3
插件作者:  Zhengdao Wang

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/latex-error-filter'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/latex-error-filter'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/latex-error-filter'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/LaTeX-error-filter

Ⅳ. 文档说明

The script is a utility that can be used to glean warning/error information from a latex compile. It will format the output into a format that is easy to read by VIM in the quickfix mode. This utility is useful for people who use VIM to edit LaTeX files, and don't use the VIM-Latex suite (the suite has already the quickfix capability). I don't use it because I think it is making things more complicated rather than simplifying it.

An alternative to using this script is to setup the errorformat variable for latex (see ":help errorformat-latex"), and use the vimlatex script available on this site too (to avoid the problem of broken numbers, and to help vim recognize filenames). But the messages are not as compact as those produced by this script.

Note 1: The filter needs awk to run.
Note 2: Even though the script is especially useful for people who don't use vim-latex, it is also useful for those who do -- It makes the messages more meaningful (e.g, 1 or 3, instead of 32 or 54, when there are actually only 3 messages on 54 lines).

添加新评论