Skip to content
Discussion options

You must be logged in to vote

'mini.diff' defines a set of mappings. Among them are:

  • "mappings.reset keys can be used to reset hunks inside visual/operator region.". By default it is gH.
  • "mappings.textobject keys define 'hunk range under cursor' textobject which can be used in Operator-pending mode as target for operator (like d, y, apply/reset hunks, etc.).". By default it is gh.

So to reset hunk under cursor with default mappings, type gHgh (apply reset operator for gh textobject). Tip: it is dot-repeatable; meaning you can type gHgh, navigate to the next hunk with ]h, and press . to reset it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.diff
2 participants