lambdalisue / vim-gina

👣 Asynchronously control git repositories in Neovim/Vim 8
http://www.vim.org/scripts/script.php?script_id=5531
MIT License
689 stars 27 forks source link

:Gina patch buffer, how to stage lines instead of stage hunk #220

Closed AndreGeng closed 5 years ago

AndreGeng commented 5 years ago

within :Gina patch buffer, is there a way to stage visually selected lines instead of stage the whole hunk?

olmokramer commented 5 years ago

You can run :diffput on the selected lines. This won't work with :diffget, though, because you can't select "deleted" lines.

AndreGeng commented 5 years ago

@olmokramer thanks for ur reply. I didn't know this before :)