4

I'd like to be able to see which lines in my file have been edited relative to the current git head, is there any way I can do this?

In particular, I'd like to be able to tell if a line was added or modified as I would by looking at the git diff.

1
  • Would a full diff be ok? If that is the case fugitive.vim's :Gdiff would be perfect. Commented Nov 4, 2015 at 19:10

1 Answer 1

4

gitgutter and signify are two plugins I know of which provide this sort of functionality. When a buffer is saved, the sign column is updated to show where lines have been added/modified/deleted.

gitgutter is Git specific, while signify supports multiple version control systems.

N.B., I'm a collaborator on signify.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.