Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep both #25

Open
ahoereth opened this issue Jun 22, 2022 · 0 comments
Open

Keep both #25

ahoereth opened this issue Jun 22, 2022 · 0 comments

Comments

@ahoereth
Copy link

How would one handle a merge conflict like the following, where I would want to keep both changes?

<<<<<<< ours
  /** An extensive
   * comment. */
  bool some_boolean;

||||||| base
=======
  /** Some other
   * multiline
   * comment. */
  bool another_variable;

>>>>>>> theirs

Opening that file and running :MergetoolStart gives me the following:

CleanShot 2022-06-22 at 11 55 45

My vim-mergetool configuration:

let g:mergetool_layout = 'mr'
let g:mergetool_prefer_revision = 'local'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant