When I scroll up/down and the cursor is in the visible region, it stays at that place.

However, when I scroll and the cursor reaches the edge (bottom or top), it will move along with my scrolling so that it always stays in the visible region.

I don't want that. I don't want that the scrolling changes the cursor at all. How can I disable that?

  • 1
    Similar question at: stackoverflow.com/questions/680456/… – Kevin Panko Nov 21 '13 at 14:06
  • This behavior is actually what I want in my vim - i.e. when I turn the scroll wheel, I want the screen to move (right now it's the cursor that moves). Do you know how can I do that? What's your vim configuration? – Jan Warchoł Sep 10 '15 at 11:15

That unfortunately cannot be changed. Vim's implementation cannot handle that the cursor is outside the currently visible viewport; that's why it has to move. As a lot of plugins also use this assumption, this is unlikely to change.

| improve this answer | |
  • Do you know if there is maybe a fork of Vim (or MacVim) which can do that? Or maybe some plugin which can emulate that behavior somehow (it would need to catch the scroll events, not sure if that is possible)? – Albert Nov 21 '13 at 13:47
  • 1
    I could imagine a veeeery cumbersome plugin implementation (basically a display rewrite in Vimscript), but (as I said), this assumption is inherent in the implementation, so a lot of things would break / need to be adapted. – Ingo Karkat Nov 21 '13 at 14:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.