Skip to content

Commit 41c4cb1

Browse files
committed
Added screencap
1 parent 60f3244 commit 41c4cb1

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,24 @@ instructions on how to use and configure the plugin.
2222
## Usage
2323

2424
This plugin can be invoked using the `:DiffStat` command. When inside a repo,
25-
run `:DiffStat [commits..]` to open the DiffStat window. See `:help DiffStat`
26-
for more details.
25+
run `:DiffStat [commits..]` to open the DiffStat window.
26+
27+
An example of this would be `:DiffStat HEAD~1` to view a diff against the
28+
parent of the current tip.
29+
30+
See `:help DiffStat-usage` for more details.
2731

2832
## Mapping
2933

3034
One can easily remap `<leader>d`, for example, to view the last couple commit
3135
points as follows:
3236

33-
`noremap <leader>d :DiffStat HEAD HEAD..HEAD~1 HEAD~1..HEAD~2 HEAD~2..HEAD~3<cr>`
37+
`noremap <leader>d :DiffStat HEAD HEAD..HEAD~1 HEAD~1..HEAD~2<cr>`
3438

39+
## Screenshots
3540

41+
![DiffStat Screenshot](https://raw.github.com/wiki/mpetrov/vim-diffstat/diffstat.png)
3642

43+
Using `:DiffStat HEAD HEAD~1` on the OpenJDK7 source.
3744

3845

0 commit comments

Comments
 (0)