Skip to content

Instantly share code, notes, and snippets.

@iddoeldor
Last active April 30, 2019 11:02
Show Gist options
  • Save iddoeldor/73fd2c610d0800c7ea781da62f6ce41e to your computer and use it in GitHub Desktop.
Save iddoeldor/73fd2c610d0800c7ea781da62f6ce41e to your computer and use it in GitHub Desktop.
$ d(){ vimdiff <(f $1) <(f $2);};f(){ hexdump -C $1|cut -d' ' -f3-|tr -s ' ';};d ~/bin1 ~/bin2

save diffchar @ ~/.vim/plugins

Click F7 to switch between diff modes

Usefull vimdiff commands:

  • qa to exit all windows
  • :vertical resize 70 to resize window
  • Set window width Ctrl+W [N columns]+(Shift+)<\>
  • Compare JSON $ vimdiff <(jq -S . A.json) <(jq -S . B.json)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment