Update screenshot to include hunk preview

This commit is contained in:
Andy Stewart
2019-09-24 11:37:14 +01:00
parent 677a80c4ed
commit 6660aca947
2 changed files with 7 additions and 5 deletions

View File

@@ -39,9 +39,9 @@ Constraints:
In the screenshot above you can see: In the screenshot above you can see:
* Line 15 has been modified. * Lines 183-184 are new.
* Lines 21-24 are new. * Lines 186-187 have been modified.
* A line or lines were removed between lines 25 and 26. * The preview for the modified lines highlights changed regions within the line.
### Installation ### Installation
@@ -180,9 +180,11 @@ Both of those take a preceding count.
To set your own mappings for these, for example `]h` and `[h`: 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 ```viml
nmap ]h <Plug>(GitGutterNextHunk) nmap ]h <Plug>GitGutterNextHunk
nmap [h <Plug>(GitGutterPrevHunk) 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. You can load all your hunks into the quickfix list with `:GitGutterQuickFix`. Note this ignores any unsaved changes in your buffers.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 587 KiB