vim-compare-lines


Ⅰ. 插件描述

A vim plugin to diff two lines of a buffer

Ⅱ. 基本信息

创建日期:  2016-05-09
使用用户:  1
Github星:  4
插件作者:  Adrien Fabre

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'statox/vim-compare-lines'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'statox/vim-compare-lines'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'statox/vim-compare-lines'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Vim-Compare-lines

Quickly compare two lines in a vim buffer.

Compare-lines is a plugin which allows you to select two lines and put the
differencies between these lines in the search register.

The differences are then highlighted as searches and you can navigate through
them with the n and N commands.

See it in action

Example of usage

How to use it

Compare-lines enable the :CL command which start the diff between two lines.
The command can be used with three types of invocation:

:CL

Will start the diff between current line (where the cursor is currently
positionned) and the line under it.

:CL 42

Will start the diff between the current line and the line 42.

:CL 42 66

Will start the diff between the line 42 and the line 66.

添加新评论