Hi thomas,

Try :auto CursorMoved * normal zz

2009/4/15 thomas <[email protected]>:
>
> Hello,
>
> I use the "scrolloff=a_high_number" trick to have the the cursor in
> the middle of the window.  Of course, when there is not enough lines,
> the cursor is on the top of the window, and this does not annoy me.
> But here is my question: is it possible to keep the cursor in the
> middle of the window when I am at the end of a file?
>
> Instead of this:
>
> +-----------------------------+
> | 220 bla bla bla bla bla bla |
> | 221 bla bla bla bla bla bla |
> | 222 bla bla bla bla bla bla |
> | 223 bla bla bla bla bla bla |
> | 224 bla bla bla bla bla bla |
> | 225 bla bla.X               | <= X is the cursor
> | - INSERTION -         225,9 |
> +-----------------------------+
>
> I want this:
>
> +-----------------------------+
> | 223 bla bla bla bla bla bla |
> | 224 bla bla bla bla bla bla |
> | 225 bla bla.X               |
> |~                            |
> |~                            |
> |~                            |
> | - INSERTION -         225,9 |
> +-----------------------------+
>
> Thanks for your help
>
> Thomas
>
> >
>



-- 
Best Regards
Jerry Dai
Steven Wright  - &quot;A lot of people are afraid of heights. Not me,
I'm afraid of widths.&quot; -
http://www.brainyquote.com/quotes/authors/s/steven_wright.html

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to