vim-diff-utils


Ⅰ. 插件描述

Diff mappings that take buffer number as a count and can be repeated with dot

Ⅱ. 基本信息

创建日期:  2015-05-02
使用用户:  1
Github星:  3
插件作者:  Ryan Carney

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

diff-utils

Enhances the built in diff mode commands do and dp by making them repeatable
with . via repeat.vim , and add some
additional helper commands for getting or putting a single line.

Usage

ModeKey BindingDescription
normaldoAn enhanced do that can be repeated with '.' including the [count] that is used as the [bufspec]
normal]doLike the enhanced do followed by ]c
normal[doLike the enhanced do followed by [c
normaldpAn enhanced dp that can be repeated with '.' including the [count] that is used as the [bufspec]
normal]dpLike the enhanced dp followed by ]c
normal[dpLike the enhanced dp followed by [c
normaldOLike the enhanced do command but gets/obtains a single line
normaldPLike the enhanced dp command but puts single line
normalduA mapping to :diffupdate command

Requirements

添加新评论