How to jump back and forth between previous / next cursor positions, limited only by the current buffer?

I like the functionality of <CO> and <CI> to go back and forth to different positions. But many times I would prefer to stay in the current buffer and always wonder when a new buffer opens, replacing the one I was looking at.

(1) Is there a way to achieve this? those. to limit <CO> and <CI> to the same buffer?

(2) Is there a way to visit all cursor movements, even those that are usually not considered jumps, for example. 10k ?

+6
vim
source share
1 answer

As for moving in the same file, check the command. '' He will jump back and forth between the current location and the last jump.

+3
source share

All Articles