errormarker.vim


Ⅰ. 插件描述

Highlights and sets error markers for lines with compile errors

Ⅱ. 基本信息

创建日期:  2007-04-21
使用用户:  117
Github星:  27
插件作者:  Michael Hofmann

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-errormarker

Highlights and sets error markers for lines with compile errors

Introduction

Hooks the make quickfix command and converts all compiler errors into signs that are placed next to the line with the error.
Additionally, lines with errors are highlighted.
Hover with your mouse over such a line to get the error message in a tooltip (only gui), or press cc. The error markers will be updated on every call to :make.

Screenshots

Doxygen in action with a lot of errors: doxygen screenshot

Installation

Use pathogen.vim.

cd ~/.vim/bundle
git clone git://github.com/mh21/errormarker.vim

Configuration

To distinguish between warnings and errors for gcc messages, place sth. like this in your .vimrc:

let &errorformat="%f:%l:%c: %t%*[^:]:%m,%f:%l: %t%*[^:]:%m," . &errorformat

If you use a different locale than English, this may be also needed:

set makeprg=LANGUAGE=C\ make

About

A changelog can be found at the end of errormarker.txt.

Get the latest version, submit pull requests, and file bug reports
on GitHub:

If you like this plugin, please star and rate it on these sites:

添加新评论