Hacker News new | ask | show | jobs
by mrinterweb 3776 days ago
Vim's fugitive plugin also gives a similar split diff view. The command is "Gdiff".
1 comments

Even without the plugin, you can spawn a diff in vim via git's difftool settings. Here's a basic version that can be used in one's .gitconfig:

    [diff]
      tool = customvim
    [difftool "customvim"]
      cmd = vim -R -f -d \"$LOCAL\" \"$REMOTE\"