grex


Ⅰ. 插件描述

Vim plugin: Operate on lines matched to the last search pattern (:g/re/x)

Ⅱ. 基本信息

创建日期:  2009-09-04
使用用户:  9
Github星:  4
插件作者:  Kana Natsuno

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

grex is a Vim plugin to provide useful commands to operate on lines matched
to the last search pattern.  For example, suppose you edit the following
content:

#950 bugfix: jump behavior
#923 bugfix: vs fold
#930 enhancement: foldlevel adjustment
#927 todo: release
#926 enhancement: performance
#924 enhancement: completion
#931 bugfix: syntax highlighting
#928 enhancement: key mappings

Once you search for a keyword such as "bugfix:", you can yank all lines
matched to the search pattern with |:Grey|.  After executing |:Grey|, you can
put the following text:

#950 bugfix: jump behavior
#923 bugfix: vs fold
#931 bugfix: syntax highlighting

There is another command |:Gred| which deletes matched lines instead.

This plugin also provides functions and operators to do the same processes as
|:Gred| or |:Grey|.  See |grex-functions|, |grex-key-mappings| and
|grex-commands| for the details.

Requirements:

  • Vim 7.2 or later

Optionals:

  • |operator-user| 0.0.5 or later (vimscript#2692)

Latest version:
http://github.com/kana/vim-grex

Document in HTML format:
http://kana.github.com/config/vim/grex.html

添加新评论