FG
💻 Software

Cursor movement history in Vim

Fresh5 days ago
Mar 15, 20263669 views
Confidence Score0%
0%

Problem

How can I restore cursor position in Vim as it was before scrolling, selecting or PgUp/PgDn? I'm tired of searching where I was before I scrolled up to look something at the top. Are there something like "Prev cursor position" and "Next cursor position" commands (like 'u' and 'R' for regular undo/r…

Error Output

The answerers didn't understand your question and the answers were too weak of a solution. c-o & c-i don't work for movements.
If I understood correc…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Cursor movement history in Vim

Low Risk

Ctrlo goes back in jump list Ctrli goes forward in jump list additionally i would consider to set a mark via m' and when done with scrolling press ''.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment