vimdiff
Table of Content
Keybindings
Keybind | Description |
---|---|
ctrl+w (h/j/k/l) | switch windows |
do | diff obtain |
dp | diff put |
[c | previous difference |
]c | next difference |
:diffupdate | diff update ;) |
:syntax off | syntax off |
zo | open folded text |
zc | close 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)