How do I jump several older change locations at once in Vim instead of repeating g;?
5g;
Most users know g; moves backward through the changelist, but fewer people use a count with it.
5g;
Most users know g; moves backward through the changelist, but fewer people use a count with it.
g;zvzz
Jumping through the changelist with g; is useful, but in real files the destination can land inside a closed fold or off-center on screen, which slows review.
g; / g,
The g; and g, commands let you navigate Vim's changelist — a per-buffer history of every position where you made a change.
navigation #navigation #changelist #editing #normal-mode #marks