1

I have to compare two (assembly) files and see where the instructions do not match.

In the vimdiff I use there are two colors to mark the difference in text. 1. blue: when there is no text in the other file to compare. 2. pink: when both files have similar text but they differ in a few characters.

The lines which match completely have a black background.

I am looking for a shortcut to hop from one 'blue' area to the next. Sample

Jens Björnhager
  • 5,632
  • 3
  • 27
  • 47
A. K.
  • 34,395
  • 15
  • 52
  • 89

1 Answers1

2

Use [c to jump to the previous change and ]c to jump to the next change.

And read :h diff.

romainl
  • 186,200
  • 21
  • 280
  • 313
  • using [c and ]c jumps to the next 'change'. Is there a way to switch only to the next 'blue' region. The file I have to diff is quite big and I do not need to look at the 'pink' areas. Thanks for the answer though. – A. K. Apr 11 '13 at 15:38
  • No, those are the only buit-in shortcuts for jumping up and down in a diffed window. Did you search on vim.org for a possible plugin? – romainl Apr 11 '13 at 15:47
  • Not yet. Although the the link posted by @Xavjer in the comment seems a possible solution. – A. K. Apr 11 '13 at 16:00