diff_navigator


Ⅰ. 插件描述

Helps navigation in unified diffs

Ⅱ. 基本信息

创建日期:  2008-08-28
使用用户:  1
Github星:  2
插件作者:  Petr Uzel

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

IMPORTANT : the script is no longer maintained here. It has been taken over by Matěj Cepl and is now maintained at
https://gitlab.com/mcepl/vim-diff_navigator . Please get the script from there.

Simple script that helps navigation in unified diffs (patches).

Together with external utility filterdiff (part of patchutils) it provides DiffAnnotate command that tags all hunks with their number and name of the changed file.

DiffShowHunk command displays annotation of the current hunk (useful when inside a big hunk).

DiffNextFile and DiffPrevFile command can be used to quickly skip to next/previous changed file.

DiffNextHunk and DiffPrevHunk quickly skips to next/previous hunk.

DiffSplitHunk splits the hunk under the cursor, fixing previous hunk header.

DiffDeleteHunk deletes the hunk under the cursor and fixes all hunks to have correct headers.

添加新评论