In vim, one could describe the "state" as the position of the cursor, the position of the screen view (ratio of screen viewable above cursor vs below), and the values of all latent variables and file buffers.
I know vim keeps track/history of cursor positions using jumplist, but does it also do that for the screen view?
Use case:
Let's say I wanted to see if a term exists in the current screen view. So I search for it using /Foo
, but since that word isn't in the current view, Vim jumps to the next occurrence. I can return the cursor to the previous position from where I searched, but that doesn't reset the screen view.