tpope/vim-fugitive — Issue #132: Easy way to move between diffs (Unimpaired-style)
Author: Peeja
Created: 2011-12-09 22:01:17+00:00
State: open

When I'm staging a commit, I usually open `:Gstatus` and run down the diffs (with `D`) staging things. Moving to the next diff is a complicated procedure, something like `^WP^ND`. It feels ripe for an Unimpaired-style binding, such as `]g` to go to the next diff, and `[g` to go to the previous. Looking at fugitive.vim, though, I can't decide how best to implement such a thing. Unlike the Quickfix List, for instance, there's no notion of a "cursor" or "current file" in the `:Gstatus` window except for the actual cursor, which only exists when the buffer is open, and is ambiguous if it's open in multiple windows.

Any thoughts?