I’d like to git gd
to jump to the next diff. I imagine I could do something like this:
map global goto d ': git next-hunk<ret>`
But that doesn’t seem to work. I just get an error that says “No search pattern”. When I try : echo something
as the binding instead, I get ho something\n
inserted into my buffer, so I suspect the leading colon doesn’t do what I want in goto mode. Any ideas?
(BTW I’m not sure why I need the space after the colon but I’ve seen it in some examples in plugin repos… I’d love to know if someone can tell me why that’s necessary!)