R – console UI tool for resolving merge conflicts in git… like vimdiff but ‘easier’

conflictgitmergetool

i'm looking for a console UI tool for resolving merge conflicts in git… like vimdiff but 'easier'

Best Answer

I stayed with vimdiff, but I usually keep only the file to open visible (run :only when on this window), and then I disable the diff colors (which most of the time hurt the eyes) with :diffoff.

Finally, I have the following mapping which helps me to browse through the conflict markers:

nnoremap <space>n /^\(<<<<\\|====\\|>>>>\)<CR>

In normal mode, press <space>n and it will search for the markers, then use n to go from marker to marker.

From this point, I then edit my conflicts until I am happy.