Skip to content

Commit

Permalink
Update screenshot to include hunk preview
Browse files Browse the repository at this point in the history
  • Loading branch information
airblade committed Sep 24, 2019
1 parent 677a80c commit 6660aca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ Constraints:

In the screenshot above you can see:

* Line 15 has been modified.
* Lines 21-24 are new.
* A line or lines were removed between lines 25 and 26.
* Lines 183-184 are new.
* Lines 186-187 have been modified.
* The preview for the modified lines highlights changed regions within the line.


### Installation
Expand Down Expand Up @@ -180,9 +180,11 @@ Both of those take a preceding count.

To set your own mappings for these, for example `]h` and `[h`:

In the lines below I have deleted brackets around GitGutter{Next,Prev}Hunk:

```viml
nmap ]h <Plug>(GitGutterNextHunk)
nmap [h <Plug>(GitGutterPrevHunk)
nmap ]h <Plug>GitGutterNextHunk
nmap [h <Plug>GitGutterPrevHunk
```

You can load all your hunks into the quickfix list with `:GitGutterQuickFix`. Note this ignores any unsaved changes in your buffers.
Expand Down
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6660aca

Please sign in to comment.