Navigate to next conflict with vimdiff

Andreas Järliden picture Andreas Järliden · Jan 17, 2013 · Viewed 24.2k times · Source

In vimdiff you can use [c and ]c to go to the previous or next change, but when doing three-way merging many of those changes are not conflicts. Is there a command to go to the next conflict, not the next change as in e.g. Kaleidoscope?

Answer

Ingo Karkat picture Ingo Karkat · Jan 17, 2013

You mean conflict markers such as <<<<<<<, =======, and >>>>>>> on merges to indicate that the automatic resolution failed?!

You can use my ConflictMotions plugin for that; it provides ]x and [x mappings, ]= for navigation within a conflict, and even corresponding text objects ax and a=.