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?
Add a comment
|
1 Answer
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=
.
-
37Although maybe not as complete as Ingo's ConflictMotions plugin. Tim Pope's unimpaired.vim provides some conflict motions as well.
[n
and]n
jump to the previous and next conflict markers. Unimpaired.vim provides many other helpful mappings that are well worth a look in my opintion. github.com/tpope/vim-unimpaired Jan 17, 2013 at 18:35 -
So the answer is without plugins there is no standard solution for this? Feb 6, 2014 at 20:25
-
19@erikb85: Without plugins, you have to do searches like
/^<<<<<<<
. Feb 9, 2014 at 21:01 -
4The plugins seem like a great idea. Without those, I usually use a search like
/<<<<<<<\|=======\|>>>>>>>
and then I can usen
andp
to skip around between the markers. Not quite as nice as those plugins, clearly, but it works.– bryantMar 5, 2020 at 6:53