sponsor Vim development Vim logo Vim Book Ad

gitdiff.vim : show git diff in a split window

 script karma  Rating 18/6, Downloaded by 1874    Comments, bugs, improvements  Vim wiki

created by
Bart Trojanowski
 
script type
utility
 
description
This script provides two functions to display git diffs in vim.

:GITDiff [commitish]

    Split the vim window vertically, display the HEAD, or some other changeset, version of the file in the split, then diff them.

:GITChanges [commitish]

    Highlight lines that were changed since the HEAD or some other changeset.

Some examples:

:GITDiff HEAD~10
:diffoff

:GITChanges origin/master
:syntax on
 
install details
1. grab vimball (vimscript#1502) then:
2. vim gitdiff.vba
   :so %
   :q
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
gitdiff.vba 2 2007-05-02 6.0 Bart Trojanowski Needs vimball plugin (vimscript#1502)
Merged in vimscript#1881 to show changed lines.
gitdiff.vim 0.0 2007-03-30 6.0 Bart Trojanowski Initial upload
ip used for rating: 54.90.46.227

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo