I often want to edit text in say line 200 of a file, but while doing this I need to look at say line 100, so I scroll to line 100. Is there a way to quickly jump back to line 200 after scrolling? Is there a possibility to configure a jump mark that is update with every movement except scrolling?
''
doesn't seem to work.
EDIT: An answer should preferably describe a way to do what I'm asking. That is move to the position the cursor had before scrolling, without having to do anything beforehand.
If you have advice on other ways to solve the general problem, e.g. using splits or setting a mark before scrolling feel free to write a comment.
(', ``, G, /, ?, n, N, %, (, ), [[, ]], {, }, :s, :tag, L, M, H)
you can get back to where you started withCtrl-O
.