Both Emacs and Vim have the ability to mark positions in the file and then return to them with a keystroke. Both editors also automatically create marks after you perform commands that are likely to jump you away from where you were (such as search and replace). It's literally one or two keystrokes to get your cursor right back to where it was previously, even if you switched to a new file!
Scrolling with the mouse wheel is not one of those commands that automatically preserves position, and remembering to set a mark and jump back to it EVERY TIME I SCROLL is too much hassle for something I should never even have to think about.
8
u/chonglibloodsport Jan 09 '14
Both Emacs and Vim have the ability to mark positions in the file and then return to them with a keystroke. Both editors also automatically create marks after you perform commands that are likely to jump you away from where you were (such as search and replace). It's literally one or two keystrokes to get your cursor right back to where it was previously, even if you switched to a new file!