urxvt-matcher-linelimit


Ⅰ. 插件描述

Add length and row limit to URxvt matcher plugin

Ⅱ. 基本信息

创建日期:  2018-08-17
使用用户:  1
Github星:  1
插件作者:  Tina

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'skielred/urxvt-matcher-linelimit'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'skielred/urxvt-matcher-linelimit'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'skielred/urxvt-matcher-linelimit'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/skielred/urxvt-matcher-linelimit

Ⅳ. 文档说明

# urxvt-matcher-linelimit

Patched default PERL matcher plugin for URxvt.

Adds two configuration variables for the matcher plugin: lengthLimit and
rowLimit

This will prevent the matcher plugin from checking a line for URLs if the line
is longer than the value defined in lengthLimit or if it is higher than
rowLimit in buffer.

Example

Example of line too long to trigger matcher and a regular matched line

Why?

The matcher plugin can cause slowdowns when the buffer is getting huge. I want
URxvt to be the fastest possible, so I wanted to give a possibility to limit
the effects without having to entirely disable the matcher plugin.

Installation

Copy matcher to one of your URxvt PERL lib directories. ie:
~/.urxvt/ext/.

Configuration

Without any configuration, the default matcher plugin behavior is kept. To add
restrictions on line length/row, add the following lines to your **X
resources**:

URxvt.matcher.lengthLimit: 240
URxvt.matcher.rowLimit: 100

You can use any other value, but I recommend 240 and 100.

0 = no limit.

Example variables block in ~/.Xresources with matcher plugin configuration:

 URxvt.perl-ext-common: default,matcher,tabbedex,resize-font
 
 URxvt.url-launcher: /usr/bin/xdg-open
 URxvt.matcher.button: 1
 URxvt.matcher.rend.0: Uline fg4
 URxvt.matcher.rowLimit: 100
 URxvt.matcher.lengthLimit: 240

Thanks

Inspired by this section in the URxvt article on
ArchWiki.

Self promotion

Check out my Dotfiles if you want to see other URxvt and UNIX tips
I did and/or use.

添加新评论