2009/4/27 Jerry Dai <[email protected]>: > 2009/4/15 thomas <[email protected]>: >> 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? > > Try :auto CursorMoved * normal zz
Thanks a lot! This command does exactly what I wanted. ++ Thomas --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
