-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Thanks for this 😊
I'd like to set up some specific configuration options (eg changing the colour scheme, remapping :diffget) when resolving git conflicts with diffconflicts.
For regular vimdiff, I have if &diff. I only half know what I'm doing in vim, so I tried changing that to if &diff || exists("g:loaded_diffconflicts"), but it didn't work.
Regarding remapping, the vimdiff configuration I have (which I must have copy-pasted from somewhere) has
nnoremap <buffer> <leader>< :diffget RE<cr>]c(etc), but when I run that while using this plugin, I get an error that there's no such buffer (if I call :diffget without a buffer specified, that works, but it seems like that would be less robust). I can't work out from the plugin code what the buffer should be called (it looks like REMOTE, but that didn't work either).
Can you advise me on how to set this up? Ideally I'd like to have one configuration block for both vimdiff and diffconflicts, if that's possible (but if it isn't, I'd still like to set up diffconflicts automatically when running git mergetool).