vim-perl-variable-highlighter


Ⅰ. 插件描述

Small plugin to highlight the current perl variable

Ⅱ. 基本信息

创建日期:  2014-06-01
使用用户:  1
Github星:  5
插件作者:  mannih

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/mannih/vim-perl-variable-highlighter

Ⅳ. 文档说明

# vim-perl-variable-highlighter

This Vim plugin will highlight all instances of the Perl variable under the
cursor.

Imgur

(Image credit: Ovid)

Perl variables, of all types, will be highlighted.

Credit

This was all spawned by Ovid who came up with the
idea to do this for perl. Paul Johnson created a
repository from the original code and
I somehow had the feeling that this could be done differently and came up
with what you are reading now.

Installation

If you are using a package manager such as Vundle or Pathogen, this plugin
should be installed in the standard manner. If you are not (why not?), you
could just copy plugin/perl-variable-highlighter.vim into your ~/.vim/plugins directory.

Requires Vim version 7.3 or later.

Configuration

You can customise the highlighting applied by this plugin by creating a highlight
group name PerlVarHiLight in your .vimrc. For example:

highlight PerlVarHiLight ctermbg=black guifg=#ff0000 guibg=#000000 ctermfg=LightRed gui=bold

Support

I'm happy about pull requests. If you happen to have any questions or if you are
in the mood for a flame war, join #vim on irc.perl.org.

See also

Damian Conway's version of this is far more advanced. See
his talk at the Perl Conference 2016
and his trackperlvars vim plugin

添加新评论