aboutsummaryrefslogtreecommitdiff
path: root/doc/diff_prune.txt
blob: 88ace868f88779598909fa97abc85e9186092789 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
*diff_prune.txt*	For Vim version 7.0	Last change: 2018 June 24

DESCRIPTION					*diff_prune*

This filetype plugin for diffs/patches ("diff" filetype) provides buffer-local
mappings in normal and visual mode to reverse changes defined by a linewise
motion or visual mode selection: leading minus signs are removed, and lines
with leading plus signs are deleted.

This can be handy for using with the `-e` or `--edit` option to `git-add`,
which allows you to edit a diff before applying changes to the staging area.

REQUIREMENTS					*diff_prune-requirements*

This plugin is only available if 'compatible' is not set. It requires Vim 7.0
or newer.

MAPPINGS					*diff_prune-mappings*
						*<Plug>DiffPrune*

A single mapping target name for two mods |<Plug>DiffPrune| is provided. 

If the user's configuration does not specify a mapping to this target by the
time this plugin is loaded, the plugin will attempt to remap normal and visual
`<LocalLeader>p` to this target.

AUTHOR						*diff_prune-author*

Written and maintained by Tom Ryder <tom@sanctum.geek.nz>.

LICENSE						*diff_prune-license*

Licensed for distribution under the same terms as Vim itself (see |license|).

 vim:tw=78:ts=8:ft=help:norl: