Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Vim's fugitive plugin also gives a similar split diff view. The command is "Gdiff".


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\"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: