airblade / vim-gitgutter

A Vim plugin which shows git diff markers in the sign column and stages/previews/undoes hunks and partial hunks.
MIT License
8.34k stars 296 forks source link

Mapping to jump to next/previous file with git status change #844

Closed brendanator closed 2 years ago

brendanator commented 2 years ago

Vim unimpaired has a maaping ]f that takes me to the next alphabetical file and vim-gitgutter has ]h which takes me to the next hunk in the current file.

It'd be great if there was a mapping that took me to the first hunk in the next file with changes - e.g. ]H And [H to go to the last(?) hunk in the previous file with changes

airblade commented 2 years ago

This section of the readme explains how to do exactly that:

https://github.com/airblade/vim-gitgutter#cycle-through-hunks-in-all-buffers