Table of Content

Keybindings

KeybindDescription
ctrl+w (h/j/k/l)switch windows
dodiff obtain
dpdiff put
[cprevious difference
]cnext difference
:diffupdatediff update ;)
:syntax offsyntax off
zoopen folded text
zcclose folded text

Compare output of commands

To compare the output of commands, you have to place them between <(...) which leads you to a command like this:

$ vimdiff <(grep result1 ~/mytestfile1) <(grep result2 ~/mytestfile2)