Hi, where should questions like the below be posted? I realize it's not a dev question, but for some reason I can't post to the vim use group.

-------- Original Message --------
Subject:        Auto centering cursor when at top or bottom line
Date:   Wed, 03 Aug 2011 12:11:54 +0200
From:   Kerneels Roos <[email protected]>
To:     [email protected]



Hi,

Is there a simple way to always have the view port shifted up or down so
that the cursor moves to the center of the screen (vertically) whenever
you reach the top most, or bottom most visible line?

What I'm looking for is a global setting or script that would
immediately shift the visible text vertically so that the line
containing the cursor is vertically centered the moment you move the
cursor vertically off the screen.

The default behaviour is for the screen to only scroll one line, I would
like it to scroll half the visible lines while the cursor still only
moves one line down but now appears vertically centered on the screen.

Any help would be much appreciated!

Regards

--
Kerneels Roos
Cell: +27 (0)82 309 1998
Skype: cornelis.roos


--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui