When we write code, we usually jump between different parts of the code (using the scrolling or the search functions).
In this situations, on Linux, *vim shifts the cursor to the visible area.
For example, if you are editing on line 10 (but suppose you are not paying attention to the current line number), and you want to just view what you did wrote at line 250 (scrolling the window), the cursor will be shifted near the line 250. If you want to go back (to line 10), and you don't remember the line number, you have to scroll again until you find the line you was at.
Is there a way to leave the cursor fixed (in this case at line 10) when you scroll the window, in such a way that you can jump back to the line just typing a key ?
I took a look at :help scroll
and :help cursor
, but these help don't say nothing about a fixed cursor option.
This question threat the same problem, but :set mouse=a
doesn't do the trick, neither the marks.