plexer


Ⅰ. 插件描述

A multi-line multi-edit plugin for vim

Ⅱ. 基本信息

创建日期:  2011-04-08
使用用户:  2
Github星:  2
插件作者:  Alfredo Deza

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Plexer

A multi-line multi-edit plugin for vim.

Just mark your lines (as many as you want) edit a single one and
apply your changes. Watch how everything propagates!

Not sure what this is about? Watch a short clip about it:
http://www.cafepais.com/media/i/plexer.gif

Why?

First question that comes up: "Wait! doesn't Visual Block do the same?"
and you would be almost right. But visual block selections in Vim need
to be contiguous. Not with Plexer! You can select arbitrary lines that
might be (or not) contiguous.

Usage

The most basic usage scenario is: add a bunch of marks and then
go edit in a non-mark line and hit :Plexer apply to get the edits
propagated properly.

.. note::

marks in Plexer are specific to the plugin itself and have nothing
to do with Vim Marks (e.g. no conflicts or overlapping occurs)

Commands

Plexer is very simple, but to harness the power from it you should
add some mappings. These are the calls that Plexer takes:

To add a mark

::

:Plexer add

To apply changes

::

:Plexer apply

To clear all marks

::

:Plexer clear

Other options that you might find useful are the signs that Plexer creates
when you add a mark.

Show all the marks:

::

:Plexer show

Hide all the marks:

::

:Plexer hide

添加新评论