3

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.

cemerick
  • 5,916
  • 5
  • 30
  • 51
  • FYI, I've filed a feature request on vim-fugitive to help support this: https://github.com/tpope/vim-fugitive/issues/370 – cemerick Aug 06 '13 at 15:27

1 Answers1

4

vim-gitgutter now lets you stage/undo individual hunks with <Leader>hs and <Leader>hu (those mappings are configurable).

Andy Stewart
  • 5,013
  • 2
  • 28
  • 38