I'm using vim-signify to see what changes exist in sources managed by git. I'd like to be able to easily stage those hunks, without having to open a separate diff view between the working copy and the index (as provided by fugitive's :Gdiff
)…after all, I'm already looking at a diff in a sense!
(The same question would apply to anyone using a git/svn/hg/whatever gutter plugin, including vim-gitgutter and similar.)
Concretely, I guess I'm looking for the equivalent of fugitive's :Gwrite
, if :Gwrite
could take a range.
vim-gitgutter now lets you stage/undo individual hunks with
<Leader>hs
and<Leader>hu
(those mappings are configurable).