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.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communitygitgutter 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.
:Gdiff
would be perfect.