Skip to main content


We can enter the diff mode either by executing:

vimdiff file1.txt file2.txt

or within a vim editing session by using:

  • :diffthis <filename> NUse this file for diff
  • :diffoff! NExit diff mode
  • :diffupdate NRe-scan files for diffs
  • ]c NNext difference
  • [c NPrev difference
  • dp NDiff put
  • do NDiff obtain
  • :diffget VGet differences
  • :diffput Put differences :diffput