Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to move to another page in gVim without moving the cursor from its present location?

Splits don't count :)

share|improve this question
add comment

3 Answers

up vote 1 down vote accepted

No, the way that Vim functions internally (and also due to historical reasons) means that cursor must always be visible.

share|improve this answer
    
Yeah, suspected as much ... but just, thought I'd check ... –  ldigas Jan 21 '12 at 1:14
add comment

I do not believe this is possible. You can, however, move the window relative to the current cursor position, while maintaining the cursor on the screen by using zz (move cursor to middle of screen), zt (move cursor to top of screen), and zb (move cursor to bottom of screen). In all of these cases, the cursor position is unchanged, while the window is scrolled around it.

share|improve this answer
add comment

This is not possible AFAIK.

The best you can do is drop a mark.

Or you can press gi. This will place you where you last were inserting text.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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