@b0rk I use `git diff --color-words`, whether I'm in a git repo or not
3 comments
@lindsey hm that doesn't work for me but other than the side by side thing `git diff` seems to do the best job of anything anyone has suggested so far @b0rk hmm, here's what I get. you could probably tell git-difftool to use something else that shows files side by side, if vimdiff is the problem for you |
@b0rk I never do this, but for a side-by-side diff, try
git difftool --tool=vimdiff --color-words --no-index <path> <path>
(You can usually leave out `--no-index` with git-diff (according to the docs, "You can omit the --no-index option when running the command in a working tree controlled by Git and at least one of the paths points outside the working tree, or when running the command outside a working tree controlled by Git"), but with git-difftool, apparently you do still need it)