Skip to content

Keep both #25

@ahoereth

Description

@ahoereth

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions