Ⅰ. 插件描述
Highlight quickfix errorsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jceb/hier'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jceb/hier'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jceb/hier'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jceb/vim-hier
Ⅳ. 文档说明
hier.txt For Vim version 7.3 Last change: 2011 August 27
Copyright (c) 2011 Jan Christoph Ebersbach
Hier hier
DESCRIPTION |hier-description|
USAGE |hier-usage|
CUSTOMIZATION |hier-customization|
INSTALLATION |hier-installation|
RELATED PLUGINS |hier-related|
CHANGELOG |hier-changelog|
==============================================================================
DESCRIPTION hier-description
Highlight quickfix errors and location list entries in buffer. This plugin
was designed to support the editqf vim script
(http://www.vim.org/scripts/script.php?script_id=3557) but it also works
very well stand alone.
This script can be downloaded from
http://www.vim.org/scripts/script.php?script_id=3564. The latest development
version is available at https://github.com/jceb/vim-hier.
==============================================================================
USAGE hier-usage
The following commands are provided:
:HierStart " enable hier highlighting
:HierStop " disable hier highlighting
:HierUpdate " update error highlighting for current buffer
:HierClear " remove highlighting - it will be displayed
" again when :HierUpdate is called
==============================================================================
CUSTOMIZATION hier-customization
The highlight group can be customized by setting the following variables.
Setting a variable to the string "" will disable highlighting of that
- Every type can be highlighted differently (error, warning, info):
let g:hier_highlight_group_qf = 'SpellBad'
let g:hier_highlight_group_qfw = 'SpellLocal'
let g:hier_highlight_group_qfi = 'SpellRare'let g:hier_highlight_group_loc = 'SpellBad'
let g:hier_highlight_group_locw = 'SpellLocal'
let g:hier_highlight_group_loci = 'SpellRare'
Enable/disable highlighting highlighting by default:
let g:hier_enabled = 1
==============================================================================
INSTALLATION hier-installation
- Download hier.vba.gz
- Open file in vim and run :so % to install plugin
- Restart vim
==============================================================================
RELATED PLUGINS hier-related
- editqf is a plugin that let's you edit and add entries in quickfix window.
The hier plugin is a useful extension to the editqf plugin
(http://www.vim.org/scripts/script.php?script_id=3557)
- quickfixsigns is a plugin similar to hier. The main difference is that it
highlights the quickfix locations in a separate column. quickfixsigns also
support the highlighting of marks which is not in the focus of hier.
(http://www.vim.org/scripts/script.php?script_id=2584)
==============================================================================
CHANGLOG hier-changelog
1.3
- fix problem when disabling the highlighting by setting the
hier_highlight_group variables to the empty string ""
1.2
- add highlighting groups for warning and info entries
- make clearing of highlighting behave more graceful towards other
plugins - add function s:Getlist to remove duplicated code
1.1
- add commands :HierStart and :HierStop
- add support for highlighting location list entries
- add support for highlighting pattern entries
1.0
- inital release
vim:tw=78:ts=8:ft=help:norl: