Diff two tabs in Vim

I suggest opening the second file in the same tab instead of a new one. Here’s what I usually do: :edit file1 :diffthis :vnew :edit file2 :diffthis The :vnew command splits the current view vertically so you can open the second file there. The :diffthis (or short: :difft) command is then applied to each view.

Load different colorscheme when using vimdiff

I don’t know why vim uses so many colors to highlight with, it doesn’t really help you figure out what’s going on. I modified my colorscheme to only use one color to highlight (with another to show where theres a difference within a line) and it made all the difference. Before After I did this … Read more

Viewing all `git diffs` with vimdiff

git config –global diff.tool vimdiff git config –global difftool.prompt false Typing git difftool yields the expected behavior. Navigation commands, :qa in vim cycles to the next file in the changeset without saving anything. Aliasing (example) git config –global alias.d difftool .. will let you type git d to invoke vimdiff. Advanced use-cases, By default, git … Read more